mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 06:45:10 +01:00
Add pacman-{conf,key} profiles.
This commit is contained in:
parent
131ef331f5
commit
5353729d73
2 changed files with 46 additions and 0 deletions
19
apparmor.d/groups/pacman/pacman-conf
Normal file
19
apparmor.d/groups/pacman/pacman-conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/pacman-conf
|
||||
profile pacman-conf @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/pacman.conf r,
|
||||
/etc/pacman.d/mirrorlist r,
|
||||
|
||||
include if exists <local/pacman-conf>
|
||||
}
|
27
apparmor.d/groups/pacman/pacman-key
Normal file
27
apparmor.d/groups/pacman/pacman-key
Normal file
|
@ -0,0 +1,27 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/pacman-key
|
||||
profile pacman-key @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/pacman-conf rPx,
|
||||
/{usr/,}bin/gpg rUx,
|
||||
/{usr/,}bin/gettext rix,
|
||||
/{usr/,}bin/basename rix,
|
||||
/{usr/,}bin/tput rix,
|
||||
|
||||
/usr/share/makepkg/{,**} r,
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
include if exists <local/pacman-key>
|
||||
}
|
Loading…
Reference in a new issue