-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
For example the following command
busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager UnlockSessionscould be translated in Lua
local bus = require'lsdbus.core'.open'system'
local ok, res = bus:call('org.freedesktop.login1', '/org/freedesktop/login1', 'org.freedesktop.login1.Manager', 'UnlockSessions')
if not ok then
error(res[2])
endNow, in the context of a daemon written in Lua and running as unpriviligied user
a direct call like os.execute'busctl call ...' fails with Call failed: Access denied.
but os.execute'sudo busctl call ...' works.
So, how to do an equivalent of the sudo with lsdbus ?
Metadata
Metadata
Assignees
Labels
No labels