mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add initial version of nmcli.
This commit is contained in:
parent
0168f8b13b
commit
d6cd1af9c8
38
apparmor.d/groups/network/nmcli
Normal file
38
apparmor.d/groups/network/nmcli
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/nmcli
|
||||||
|
profile nmcli @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
capability sys_nice,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/less rCx -> pager,
|
||||||
|
|
||||||
|
@{run}/udev/data/+pci* r,
|
||||||
|
@{run}/udev/data/n[0-9]* r,
|
||||||
|
|
||||||
|
@{sys}/devices/virtual/net/{,**} r,
|
||||||
|
@{sys}/devices/pci[0-9]*/**/net/*/{,**} r,
|
||||||
|
|
||||||
|
profile pager {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
/{usr/,}bin/less mr,
|
||||||
|
|
||||||
|
owner @{HOME}/.lesshs* rw,
|
||||||
|
owner @{user_cache_dirs}/.lesshs* rw,
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
include if exists <local/nmcli>
|
||||||
|
}
|
@ -120,6 +120,7 @@ needrestart-iucode-scan-versions complain
|
|||||||
networkd-dispatcher complain
|
networkd-dispatcher complain
|
||||||
nft complain
|
nft complain
|
||||||
nmap complain
|
nmap complain
|
||||||
|
nmcli complain
|
||||||
nullmailer-send complain
|
nullmailer-send complain
|
||||||
packagekitd attach_disconnected,complain
|
packagekitd attach_disconnected,complain
|
||||||
pass complain
|
pass complain
|
||||||
|
Loading…
Reference in New Issue
Block a user