apparmor.d/apparmor.d/profiles-g-l/last

31 lines
656 B
Text
Raw Normal View History

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
2021-03-13 16:52:36 +01:00
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/last{,b}
2021-03-13 16:52:36 +01:00
profile last @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
2021-03-13 16:52:36 +01:00
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
# For the --dns flag
network inet dgram,
network inet6 dgram,
network netlink raw,
@{exec_path} mr,
@{PROC}/@{pids}/loginuid r,
/var/log/wtmp r,
/var/log/btmp{,.@{int}} r,
2021-03-13 16:52:36 +01:00
include if exists <local/last>
}