mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Profiles update.
This commit is contained in:
parent
a4e8eab6a2
commit
f9fde0b482
5 changed files with 25 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
# Copyright (C) 2018-2022 Mikhail Morfikov
|
||||||
# 2021 Alexandre Pujol <alexandre@pujol.io>
|
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
@ -13,8 +13,6 @@ profile at-spi-bus-launcher @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
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=dbus-daemon,
|
||||||
signal (receive) set=(term hup kill) peer=gdm*,
|
signal (receive) set=(term hup kill) peer=gdm*,
|
||||||
|
|
|
@ -6,7 +6,7 @@ abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
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} {
|
profile tracker-miner @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/private-files>
|
include <abstractions/private-files>
|
||||||
|
|
|
@ -63,6 +63,7 @@ profile pacman @{exec_path} {
|
||||||
/{usr/,}bin/vercmp rix,
|
/{usr/,}bin/vercmp rix,
|
||||||
/{usr/,}bin/xmlcatalog rix,
|
/{usr/,}bin/xmlcatalog rix,
|
||||||
/{usr/,}lib/ghc-*/bin/ghc-pkg rix,
|
/{usr/,}lib/ghc-*/bin/ghc-pkg rix,
|
||||||
|
/{usr/,}bin/appstreamcli rPx,
|
||||||
/{usr/,}bin/arch-audit rPx,
|
/{usr/,}bin/arch-audit rPx,
|
||||||
/{usr/,}bin/archlinux-java rPx,
|
/{usr/,}bin/archlinux-java rPx,
|
||||||
/{usr/,}bin/bootctl rPx,
|
/{usr/,}bin/bootctl rPx,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# 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
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
@ -11,43 +12,42 @@ profile appstreamcli @{exec_path} flags=(complain) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
# For file valudation using the network
|
# For file validation using the network
|
||||||
/{usr/,}bin/curl rCx -> curl,
|
/{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}/ rw,
|
||||||
owner @{user_cache_dirs}/appstream-cache-*.mdb rw,
|
owner @{user_cache_dirs}/appstream-cache-*.mdb rw,
|
||||||
owner @{user_cache_dirs}/appstream/ rw,
|
owner @{user_cache_dirs}/appstream/ rw,
|
||||||
owner @{user_cache_dirs}/appstream/appcache-*.mdb 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/ r,
|
||||||
/var/lib/app-info/yaml/*_Components-*.yml.gz w,
|
/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 /var/cache/app-info/{,**} rw,
|
||||||
owner /tmp/appstream-cache-*.mdb rw,
|
owner /tmp/appstream-cache-*.mdb rw,
|
||||||
owner /tmp/appstream/ rw,
|
owner /tmp/appstream/ rw,
|
||||||
owner /tmp/appstream/appcache-*.mdb 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,
|
/var/log/cron-apt/temp w,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
|
|
||||||
profile curl {
|
profile curl {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
|
@ -17,6 +17,9 @@ profile sysctl @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/sysctl.d/{,**} r,
|
||||||
|
/usr/lib/sysctl.d/{,**} r,
|
||||||
|
|
||||||
@{PROC}/sys/ r,
|
@{PROC}/sys/ r,
|
||||||
@{PROC}/sys/** rw,
|
@{PROC}/sys/** rw,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue