2021-04-01 16:17:47 +01:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-01 16:17:47 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-03-13 16:52:36 +01:00
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 14:34:42 +01:00
|
|
|
@{exec_path} = @{bin}/last{,b}
|
2021-03-13 16:52:36 +01:00
|
|
|
profile last @{exec_path} {
|
|
|
|
include <abstractions/base>
|
2022-06-01 17:50:05 +00:00
|
|
|
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,
|
|
|
|
|
2022-06-01 17:50:05 +00:00
|
|
|
/var/log/wtmp r,
|
2024-02-26 21:10:53 +00:00
|
|
|
/var/log/btmp{,.@{int}} r,
|
2022-06-01 17:50:05 +00:00
|
|
|
|
2021-03-13 16:52:36 +01:00
|
|
|
include if exists <local/last>
|
|
|
|
}
|