Profiles update.

This commit is contained in:
Alexandre Pujol 2022-03-06 13:56:12 +00:00
parent a4e8eab6a2
commit f9fde0b482
Failed to generate hash of commit
5 changed files with 25 additions and 23 deletions

View file

@ -1,6 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# Copyright (C) 2018-2022 Mikhail Morfikov
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -13,8 +13,6 @@ profile at-spi-bus-launcher @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
# Needed?
deny capability sys_nice,
signal (receive) set=(term hup kill) peer=dbus-daemon,
signal (receive) set=(term hup kill) peer=gdm*,

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/tracker-miner-fs-3
@{exec_path} = /{usr/,}lib/tracker-miner-fs-{,control-}3
profile tracker-miner @{exec_path} {
include <abstractions/base>
include <abstractions/private-files>

View file

@ -63,6 +63,7 @@ profile pacman @{exec_path} {
/{usr/,}bin/vercmp rix,
/{usr/,}bin/xmlcatalog rix,
/{usr/,}lib/ghc-*/bin/ghc-pkg rix,
/{usr/,}bin/appstreamcli rPx,
/{usr/,}bin/arch-audit rPx,
/{usr/,}bin/archlinux-java rPx,
/{usr/,}bin/bootctl rPx,

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2019-2022 Mikhail Morfikov
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -11,43 +12,42 @@ profile appstreamcli @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
capability dac_read_search,
@{exec_path} mr,
# For file valudation using the network
# For file validation using the network
/{usr/,}bin/curl rCx -> curl,
/etc/appstream.conf r,
/usr/share/appdata/ r,
/usr/share/applications/{,*.desktop} r,
/usr/share/metainfo/ r,
/usr/share/metainfo/*.{metainfo,appdata}.xml r,
/usr/share/mime/mime.cache r,
owner @{PROC}/@{pid}/fd/ r,
/etc/appstream.conf r,
owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/appstream-cache-*.mdb rw,
owner @{user_cache_dirs}/appstream/ rw,
owner @{user_cache_dirs}/appstream/appcache-*.mdb rw,
owner @{user_share_dirs}/mime/mime.cache r,
/usr/share/appdata/ r,
/var/lib/app-info/yaml/ r,
/var/lib/app-info/yaml/*_Components-*.yml.gz w,
/var/lib/apt/lists/ r,
/var/lib/apt/lists/*_Components-*.gz r,
/var/lib/flatpak/appstream/{,**} r,
/var/cache/swcatalog/cache/{,**} rw,
owner /var/cache/app-info/{,**} rw,
owner /tmp/appstream-cache-*.mdb rw,
owner /tmp/appstream/ rw,
owner /tmp/appstream/appcache-*.mdb rw,
owner @{user_share_dirs}/mime/mime.cache r,
/usr/share/mime/mime.cache r,
/usr/share/applications/{,*.desktop} r,
/usr/share/metainfo/ r,
/usr/share/metainfo/*.{metainfo,appdata}.xml r,
/var/lib/apt/lists/ r,
/var/lib/apt/lists/*_Components-*.gz r,
# file_inherit
/var/log/cron-apt/temp w,
owner @{PROC}/@{pid}/fd/ r,
profile curl {
include <abstractions/base>

View file

@ -17,6 +17,9 @@ profile sysctl @{exec_path} {
@{exec_path} mr,
/etc/sysctl.d/{,**} r,
/usr/lib/sysctl.d/{,**} r,
@{PROC}/sys/ r,
@{PROC}/sys/** rw,