apparmor.d/apparmor.d/profiles-s-z/who
2023-08-06 16:30:38 +02:00

23 lines
494 B
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} = @{bin}/who
profile who @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
capability kill,
@{exec_path} mr,
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
include if exists <local/who>
}