mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}{s,}bin/cgrulesengd
|
|
profile cgrulesengd @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
# For creating Unix domain sockets/IPC sockets:
|
|
# socket(AF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR) = 3
|
|
# ...
|
|
# bind(3, {sa_family=AF_NETLINK, nl_pid=13284, nl_groups=0x000001}, 12) = -1 EPERM (Operation
|
|
# not permitted)
|
|
capability net_admin,
|
|
|
|
# To remove the following errors:
|
|
# readlink("/proc/12/exe", 0x7ffc9fa85cd0, 4096) = -1 EACCES (Permission denied)
|
|
capability sys_ptrace,
|
|
|
|
# To be able to read the /proc/ files of all processes in the system.
|
|
capability dac_read_search,
|
|
|
|
network netlink dgram,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sys}/fs/cgroup/**/tasks w,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/task/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{PROC}/cgroups r,
|
|
|
|
@{sys}/fs/cgroup/unified/cgroup.controllers r,
|
|
|
|
owner @{run}/cgred.socket w,
|
|
|
|
/etc/cgconfig.conf r,
|
|
/etc/cgrules.conf r,
|
|
/etc/cgconfig.d/ r,
|
|
|
|
|
|
include if exists <local/cgrulesengd>
|
|
}
|