feat: update profiles.

This commit is contained in:
Alexandre Pujol 2022-03-30 22:20:56 +01:00
parent 9d40327b00
commit 6d1fa42f25
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 44 additions and 19 deletions

View file

@ -18,5 +18,7 @@ profile hostname @{exec_path} {
@{exec_path} mr,
@{run}/resolvconf/resolv.conf r,
include if exists <local/hostname>
}

View file

@ -52,7 +52,10 @@ profile ifup @{exec_path} {
/{usr/,}bin/run-parts mr,
/{usr/,}lib/bridge-utils/ifupdown.sh rPUx,
/etc/network/if-down.d/ r,
/etc/network/if-down.d/resolvconf rPUx,
/etc/network/if-down.d/openvpn rPUx,
/etc/network/if-down.d/wpasupplicant rPUx,
/etc/wpa_supplicant/ifupdown.sh rPUx,
@ -70,7 +73,6 @@ profile ifup @{exec_path} {
/etc/network/if-pre-up.d/ r,
/etc/network/if-pre-up.d/bridge rPUx,
/{usr/,}lib/bridge-utils/ifupdown.sh rPUx,
/etc/network/if-pre-up.d/ethtool rPUx,
/etc/network/if-pre-up.d/hostapd rPUx,
/etc/network/if-pre-up.d/ifenslave rPUx,
@ -109,6 +111,7 @@ profile ifup @{exec_path} {
include <abstractions/base>
# capability mac_admin,
capability net_admin,
capability sys_admin,
# capability sys_resource,

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/ip
profile ip @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
capability net_admin,
capability sys_module,

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/lsblk
profile lsblk @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/disks-read>
include <abstractions/nameservice-strict>