Add vim modeline instructing the editor to use syntax plugin provided by apparmor. Continuation of #392 to keep the diff list relatively short.
41 lines
915 B
Text
41 lines
915 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/systemd/systemd-userdbd
|
|
profile systemd-userdbd @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/common/systemd>
|
|
|
|
capability dac_read_search,
|
|
capability sys_resource,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet raw,
|
|
network inet6 raw,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{lib}/systemd/systemd-userwork rix,
|
|
|
|
/etc/shadow r,
|
|
/etc/machine-id r,
|
|
|
|
@{run}/systemd/userdb/{,**} rw,
|
|
|
|
@{PROC}/@{pid}/cgroup r,
|
|
@{PROC}/pressure/cpu r,
|
|
@{PROC}/pressure/io r,
|
|
@{PROC}/pressure/memory r,
|
|
|
|
include if exists <local/systemd-userdbd>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|