feat(profiles): minor improvments.

This commit is contained in:
Alexandre Pujol 2022-06-13 22:13:17 +01:00
parent 7c2e92ba03
commit f71c0e41f8
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 85 additions and 51 deletions

View file

@ -7,14 +7,28 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/nm-dispatcher
@{exec_path} += /{usr/,}lib/NetworkManager/nm-dispatcher
profile nm-dispatcher @{exec_path} {
include <abstractions/base>
include <abstractions/dbus-strict>
capability sys_nice,
dbus receive bus=system path=/org/freedesktop/nm_dispatcher
interface=org.freedesktop.nm_dispatcher,
dbus bind bus=system
name=org.freedesktop.nm_dispatcher,
@{exec_path} mr,
/etc/NetworkManager/dispatcher.d/{,**} r,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/run-parts rPx,
/etc/NetworkManager/dispatcher.d/ r,
/etc/NetworkManager/dispatcher.d/** rix,
@{run}/systemd/notify rw,
include if exists <local/nm-dispatcher>
}