35 lines
809 B
Text
35 lines
809 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/update-notifier/package-system-locked
|
|
profile package-system-locked @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
|
|
capability dac_read_search,
|
|
capability syslog,
|
|
capability sys_ptrace,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/fuser rix,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
owner @{PROC}/@{pid}/net/unix r,
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/fd/ r,
|
|
@{PROC}/@{pids}/maps r,
|
|
@{PROC}/swaps r,
|
|
|
|
include if exists <local/package-system-locked>
|
|
}
|