41 lines
951 B
Text
41 lines
951 B
Text
# 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} = @{bin}/wpa_action
|
|
profile wpa-action @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
capability net_admin,
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/wpa_cli rPx,
|
|
|
|
@{bin}/{,ba,da}sh rix,
|
|
@{bin}/{,e}grep rix,
|
|
@{bin}/cat rix,
|
|
@{bin}/date rix,
|
|
@{bin}/ifup rix,
|
|
@{bin}/ip rix,
|
|
@{bin}/ln rix,
|
|
@{bin}/logger rix,
|
|
@{bin}/rm rix,
|
|
|
|
/etc/wpa_supplicant/{,**} r,
|
|
/etc/network/interfaces r,
|
|
/etc/network/interfaces.d/{,*} 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,
|
|
|
|
include if exists <local/wpa-action>
|
|
}
|