mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Add sysctl profile.
This commit is contained in:
parent
bcd1b0958d
commit
16dddf16dc
28
apparmor.d/profiles-s-z/sysctl
Normal file
28
apparmor.d/profiles-s-z/sysctl
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/sysctl
|
||||||
|
profile sysctl @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability mac_admin,
|
||||||
|
capability net_admin,
|
||||||
|
capability sys_admin,
|
||||||
|
capability sys_resource,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{PROC}/sys/ r,
|
||||||
|
@{PROC}/sys/** rw,
|
||||||
|
|
||||||
|
# Inherit Silencer
|
||||||
|
deny network inet6 stream,
|
||||||
|
deny network inet stream,
|
||||||
|
|
||||||
|
include if exists <local/sysctl>
|
||||||
|
}
|
@ -114,6 +114,7 @@ sudo complain
|
|||||||
swaplabel complain
|
swaplabel complain
|
||||||
swapoff complain
|
swapoff complain
|
||||||
swapon complain
|
swapon complain
|
||||||
|
sysctl complain
|
||||||
systemd-analyze complain
|
systemd-analyze complain
|
||||||
systemd-ask-password complain
|
systemd-ask-password complain
|
||||||
systemd-binfmt complain
|
systemd-binfmt complain
|
||||||
|
Loading…
Reference in New Issue
Block a user