mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profiles): add cron-ubuntu-fan.
This commit is contained in:
parent
23642eb0be
commit
63f1a98c37
33
apparmor.d/groups/ubuntu/cron-ubuntu-fan
Normal file
33
apparmor.d/groups/ubuntu/cron-ubuntu-fan
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# 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} = /etc/network/if-up.d/ubuntu-fan
|
||||||
|
profile cron-ubuntu-fan @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/{,da,ba}sh rix,
|
||||||
|
/{usr/,}{s,}bin/fanctl rix,
|
||||||
|
/{usr/,}bin/flock rix,
|
||||||
|
/{usr/,}bin/grep rix,
|
||||||
|
/{usr/,}bin/id rix,
|
||||||
|
/{usr/,}bin/ip rix,
|
||||||
|
/{usr/,}bin/mkdir rix,
|
||||||
|
/{usr/,}bin/sed rix,
|
||||||
|
/{usr/,}bin/touch rix,
|
||||||
|
|
||||||
|
/etc/network/fan r,
|
||||||
|
|
||||||
|
@{run}/ubuntu-fan/ rw,
|
||||||
|
@{run}/ubuntu-fan/.lock rwk,
|
||||||
|
|
||||||
|
include if exists <local/cron-ubuntu-fan>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user