update apparmor profiles
This commit is contained in:
parent
6c34573727
commit
7da59b4984
18 changed files with 122 additions and 6 deletions
42
apparmor.d/profiles-s-z/wpa-action
Normal file
42
apparmor.d/profiles-s-z/wpa-action
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Mikhail Morfikov
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}sbin/wpa_action
|
||||
profile wpa-action @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}sbin/wpa_cli rPx,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/logger rix,
|
||||
/{usr/,}bin/ln rix,
|
||||
/{usr/,}sbin/ifup rix,
|
||||
/{usr/,}bin/rm rix,
|
||||
/{usr/,}bin/ip rix,
|
||||
/{usr/,}bin/{,e}grep rix,
|
||||
/{usr/,}bin/cat rix,
|
||||
/{usr/,}bin/date rix,
|
||||
|
||||
/etc/wpa_supplicant/{,**} r,
|
||||
|
||||
owner @{run}/wpa_action.wlan[0-9]*.ifupdown rw,
|
||||
owner @{run}/wpa_action.wlan[0-9]*.timestamp rw,
|
||||
owner @{run}/network/ifstate.wlan[0-9]* rwk,
|
||||
owner @{run}/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan[0-9]*.pid rw,
|
||||
|
||||
/etc/network/interfaces r,
|
||||
/etc/network/interfaces.d/{,*} r,
|
||||
|
||||
include if exists <local/wpa-action>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue