core/dbus-service: some modernization for bus_service_method_mount()
authorMike Yuan <me@yhndnzj.com>
Mon, 10 Jun 2024 15:27:51 +0000 (17:27 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 17 Aug 2024 16:09:54 +0000 (18:09 +0200)
commitf31906ff0b451c740bbe5b6e18db5338411429cb
tree5118f8d865bcec28277c493439deb3aa8267b248
parentc53a28cea19b993b4eb138da872c544e507bdfdc
core/dbus-service: some modernization for bus_service_method_mount()

Perform some checks earlier to avoid pointless polkit auth.

Plus, the missing unit_get_exec_context() shall not be
a formalized error. As it's our internal representation
and in the normal operation should never happen.
src/core/dbus-service.c