apparmor.d/apparmor.d/groups/systemd/systemd-hwdb
2023-08-17 18:43:56 +01:00

30 lines
675 B
Text

# 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} = @{bin}/systemd-hwdb
profile systemd-hwdb @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
capability dac_override,
@{exec_path} mr,
@{lib}/udev/.#hwdb.bin[0-9a-zA-Z]* wl -> @{lib}/udev/#[0-9]*,
@{lib}/udev/hwdb.bin w,
/etc/udev/.#hwdb.bind* rw,
/etc/udev/hwdb.bin rw,
/etc/udev/hwdb.d/{,*} r,
owner @{PROC}/@{pid}/stat r,
deny /apparmor/.null rw,
include if exists <local/systemd-hwdb>
}