apparmor.d/apparmor.d/groups/ubuntu/apt-esm-hook
2022-06-05 22:47:37 +01:00

26 lines
No EOL
571 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/ubuntu-advantage/apt-esm-hook
profile apt-esm-hook @{exec_path} {
include <abstractions/base>
include <abstractions/apt-common>
@{exec_path} mr,
/{usr/,}bin/dpkg rPx,
/etc/machine-id r,
/var/lib/ubuntu-advantage/messages/{,**} rw,
owner @{PROC}/@{pid}/fd/ r,
@{PROC}/@{pids}/cmdline r,
include if exists <local/apt-esm-hook>
}