mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
Add apt-overlay
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
This commit is contained in:
parent
83bff808dc
commit
d0553ff4f7
2 changed files with 34 additions and 0 deletions
33
apparmor.d/groups/apt/apt-overlay
Normal file
33
apparmor.d/groups/apt/apt-overlay
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# 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} = /{usr/,}bin/apt-overlay
|
||||||
|
profile apt-overlay @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
/{usr/,}bin/apt-get rPx,
|
||||||
|
/{usr/,}bin/ruby* mrix,
|
||||||
|
|
||||||
|
/{usr/,}sbin/apt-overlay r,
|
||||||
|
|
||||||
|
/{usr/,}lib/ruby/{,**} r,
|
||||||
|
/{usr/,}lib/locale/locale-archive r,
|
||||||
|
/{usr/,}lib/ruby/gems/3.0.0/specifications/default/*.gemspec rwk,
|
||||||
|
|
||||||
|
/usr/share/rubygems-integration/{,**} r,
|
||||||
|
|
||||||
|
/ r,
|
||||||
|
/root/ r
|
||||||
|
|
||||||
|
owner @{PROC}/@{pids}/loginuid r,
|
||||||
|
owner @{PROC}/@{pids}/maps r,
|
||||||
|
|
||||||
|
include if exists <local/apt-overlay>
|
||||||
|
}
|
|
@ -42,6 +42,7 @@ profile apt-systemd-daily @{exec_path} {
|
||||||
|
|
||||||
/{usr/,}bin/apt-config rPx,
|
/{usr/,}bin/apt-config rPx,
|
||||||
/{usr/,}bin/apt-get rPx,
|
/{usr/,}bin/apt-get rPx,
|
||||||
|
/{usr/,}bin/apt-overlay rPx,
|
||||||
/{usr/,}bin/unattended-upgrade rPx,
|
/{usr/,}bin/unattended-upgrade rPx,
|
||||||
|
|
||||||
/etc/default/locale r,
|
/etc/default/locale r,
|
||||||
|
|
Loading…
Reference in a new issue