feat(profile): improve sudo abstraction.
This commit is contained in:
parent
7ae05eb397
commit
cbd0b61491
3 changed files with 13 additions and 58 deletions
|
|
@ -5,6 +5,7 @@
|
|||
# Minimal set of rules for sudo. Interactive sudo need more rules.
|
||||
|
||||
include <abstractions/authentication>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/wutmp>
|
||||
|
|
@ -17,6 +18,15 @@
|
|||
|
||||
network netlink raw, # PAM
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.logi1.Manager
|
||||
member=CreateSession
|
||||
peer=(name=org.freedesktop.login1, label=systemd-logind),
|
||||
|
||||
dbus (send receive) bus=session path=/org/freedesktop/systemd1
|
||||
interface=org.freedesktop.systemd.Manager
|
||||
member={JobRemoved,StartTransientUnit},
|
||||
|
||||
@{lib}/sudo/** mr,
|
||||
|
||||
@{etc_ro}/environment r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue