Initial pacman profiles.

This commit is contained in:
Alexandre Pujol 2021-08-22 15:38:14 +01:00
parent 020eb0daf6
commit 3c1a201e4a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 403 additions and 1 deletions

View file

@ -0,0 +1,30 @@
# 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/share/libalpm/scripts/detect-old-perl-modules.sh
profile pacman-hook-perl @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/perl rix,
/{usr/,}bin/bash rix,
/{usr/,}bin/find rix,
/{usr/,}bin/pacman rPx,
/{usr/,}bin/sed rix,
/{usr/,}lib/perl[0-9]*/{,**} r,
/dev/tty rw,
# Inherit silencer
deny network inet6 stream,
deny network inet stream,
include if exists <local/pacman-hook-perl>
}