udevadm -> systemd-udevd
This commit is contained in:
parent
facade62b6
commit
6fd5d5f56f
1 changed files with 5 additions and 3 deletions
93
apparmor.d/groups/systemd/systemd-udevd
Normal file
93
apparmor.d/groups/systemd/systemd-udevd
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2019-2021 Mikhail Morfikov
|
||||
# 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/udevadm
|
||||
@{exec_path} += /{usr/,}lib/systemd/systemd-udevd
|
||||
profile systemd-udevd @{exec_path} flags=(attach_disconnected complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
# (##FIXME##)
|
||||
capability sys_admin,
|
||||
capability net_admin,
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
capability sys_ptrace,
|
||||
capability sys_resource,
|
||||
capability chown,
|
||||
capability fsetid,
|
||||
capability sys_module,
|
||||
capability mknod,
|
||||
|
||||
ptrace (read),
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/chgrp rix,
|
||||
/{usr/,}bin/chmod rix,
|
||||
/{usr/,}bin/setfacl rix,
|
||||
/{usr/,}bin/logger rix,
|
||||
/{usr/,}bin/nohup rix,
|
||||
|
||||
/{usr/,}{s,}bin/* rPUx,
|
||||
|
||||
/{usr/,}lib/udev/* rPUx,
|
||||
/{usr/,}lib/systemd/systemd-* rPUx,
|
||||
/{usr/,}lib/crda/* rPUx,
|
||||
|
||||
/usr/share/hplip/config_usb_printer.py rPUx,
|
||||
|
||||
/etc/console-setup/*.sh rPUx,
|
||||
|
||||
/etc/default/* r,
|
||||
|
||||
/etc/udev/ r,
|
||||
/etc/udev/udev.conf r,
|
||||
/etc/udev/rules.d/ r,
|
||||
/etc/udev/rules.d/[0-9][0-9]-*.rules r,
|
||||
|
||||
/etc/udev/hwdb.d/ r,
|
||||
/etc/udev/hwdb.d/[0-9][0-9]-*.hwdb r,
|
||||
/etc/udev/hwdb.bin rw,
|
||||
/etc/udev/.#hwdb.bin* rw,
|
||||
|
||||
/etc/modprobe.d/ r,
|
||||
/etc/modprobe.d/*.conf r,
|
||||
|
||||
/etc/systemd/network/ r,
|
||||
/etc/systemd/network/[0-9][0-9]-*.link r,
|
||||
|
||||
@{run}/udev/ rw,
|
||||
@{run}/udev/** rw,
|
||||
|
||||
@{run}/systemd/seats/seat[0-9]* r,
|
||||
|
||||
@{sys}/** rw,
|
||||
|
||||
/dev/ rw,
|
||||
/dev/** rwk,
|
||||
|
||||
owner @{PROC}/@{pid}/loginuid r,
|
||||
owner @{PROC}/@{pid}/oom_score_adj rw,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
@{PROC}/@{pids}/cgroup r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
include if exists <local/systemd-udevd>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue