Add some profiles.

This commit is contained in:
Alexandre Pujol 2021-05-09 00:34:57 +01:00
parent a8d1205e76
commit e6dc08caec
Failed to generate hash of commit
7 changed files with 151 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# 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/fc-cache
profile fc-cache @{exec_path} {
include <abstractions/base>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-write>
@{exec_path} mr,
/var/cache/fontconfig/{,**} rw,
/var/cache/fontconfig/*.cache-[0-9]* rwk,
/var/cache/fontconfig/*.cache-[0-9]*.LCK rwl,
/var/cache/fontconfig/CACHEDIR.TAG.LCK rwl,
include if exists <local/fc-cache>
}

View file

@ -0,0 +1,18 @@
# 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/gdk-pixbuf-query-loaders
profile gdk-pixbuf-query-loaders @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}lib/gdk-pixbuf-[0-9].[0-9]*/*/loaders.cache.* rw,
include if exists <local/gdk-pixbuf-query-loaders>
}

View 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/gio-querymodules
profile gio-querymodules @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
@{exec_path} mr,
/{usr/,}/lib/gtk-{3,4}.0/**/giomodule.cache{,.[0-9A-Z]*} w,
include if exists <local/gio-querymodules>
}

View file

@ -0,0 +1,22 @@
# 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/install-info
profile install-info @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}/bin/gzip rix,
/usr/share/info/{,**} r,
/usr/share/info/dir rw,
include if exists <local/install-info>
}

View file

@ -0,0 +1,32 @@
# 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/pwck
profile pwck @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/{usr/,}{s,}bin/nscd rix,
/etc/login.defs r,
/etc/.pwd.lock wk,
/etc/passwd rw,
/etc/passwd.[0-9]* rw,
/etc/passwd.lock wl,
/etc/shadow rw,
/etc/shadow.[0-9]* rw,
/etc/shadow.lock wl,
@{run}/systemd/userdb/ r,
@{PROC}/sys/kernel/random/boot_id r,
include if exists <local/pwck>
}

View file

@ -0,0 +1,18 @@
# 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/update-mime-database
profile update-mime-database @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/usr/share/mime/{,**} rw,
include if exists <local/update-mime-database>
}

View 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/,}lib/vlc/vlc-cache-gen
profile vlc-cache-gen @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
@{exec_path} mr,
/{usr/,}lib/vlc/plugins/{,*} rw,
include if exists <local/vlc-cache-gen>
}