mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Profiles update.
This commit is contained in:
parent
44dc86cd36
commit
9ad8ec165d
@ -11,7 +11,7 @@ include <tunables/global>
|
||||
@{CHROMIUM_CACHEDIR} = @{user_cache_dirs}/chromium
|
||||
|
||||
@{exec_path} = /{usr/,}bin/chromium
|
||||
profile chromium @{exec_path} {
|
||||
profile chromium @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/deny-root-dir-access>
|
||||
|
@ -191,6 +191,11 @@ profile chromium-chromium @{exec_path} {
|
||||
# file_inherit
|
||||
owner /dev/tty[0-9]* rw,
|
||||
|
||||
# Video support
|
||||
/dev/ r,
|
||||
/dev/video[0-9]* rw,
|
||||
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/{idProduct,idVendor,interface} r,
|
||||
|
||||
/etc/opensc.conf r,
|
||||
|
||||
include <abstractions/dconf>
|
||||
|
@ -12,7 +12,7 @@ include <tunables/global>
|
||||
@{MOZ_CACHEDIR} = @{user_cache_dirs}/mozilla
|
||||
|
||||
@{exec_path} = @{MOZ_LIBDIR}/firefox{,-bin,-esr}
|
||||
profile firefox @{exec_path} {
|
||||
profile firefox @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/wayland>
|
||||
include <abstractions/opencl-intel>
|
||||
|
@ -62,6 +62,7 @@ profile firefox-crashreporter @{exec_path} {
|
||||
# file_inherit
|
||||
owner @{MOZ_CACHEDIR}/firefox/*.*/** r,
|
||||
owner @{MOZ_HOMEDIR}/firefox/*.*/extensions/*.xpi r,
|
||||
owner @{MOZ_HOMEDIR}/firefox/*.*/.parentlock rw,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
/dev/dri/renderD128 rw,
|
||||
|
||||
|
@ -10,6 +10,7 @@ include <tunables/global>
|
||||
profile arch-audit @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
capability dac_read_search,
|
||||
|
@ -15,20 +15,25 @@ profile paccache @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/cat rix,
|
||||
/{usr/,}bin/gettext rix,
|
||||
/{usr/,}bin/pacman-conf rPx,
|
||||
/{usr/,}bin/pacman rPUx,
|
||||
/{usr/,}bin/tput rix,
|
||||
/{usr/,}bin/pacsort rix,
|
||||
/{usr/,}bin/gawk rix,
|
||||
/{usr/,}bin/bash rix,
|
||||
/{usr/,}bin/cat rix,
|
||||
/{usr/,}bin/gawk rix,
|
||||
/{usr/,}bin/gettext rix,
|
||||
/{usr/,}bin/pacman rPUx,
|
||||
/{usr/,}bin/pacman-conf rPx,
|
||||
/{usr/,}bin/pacsort rix,
|
||||
/{usr/,}bin/rm rix,
|
||||
/{usr/,}bin/stat rix,
|
||||
/{usr/,}bin/tput rix,
|
||||
/{usr/,}bin/xargs rix,
|
||||
|
||||
/usr/share/makepkg/util/*.sh r,
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
|
||||
/var/cache/pacman/pkg/{,*} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
include if exists <local/paccache>
|
||||
|
@ -23,6 +23,9 @@ profile child-systemctl {
|
||||
|
||||
ptrace (read),
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
||||
/{usr/,}bin/systemctl mr,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
|
@ -10,29 +10,30 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}lib/systemd/systemd-coredump
|
||||
profile systemd-coredump @{exec_path} flags=(attach_disconnected complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/systemd-common>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability dac_read_search,
|
||||
capability setgid,
|
||||
capability setpcap,
|
||||
capability setuid,
|
||||
capability setgid,
|
||||
capability dac_read_search,
|
||||
capability sys_ptrace,
|
||||
# Needed?
|
||||
deny capability net_admin,
|
||||
# deny capability net_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/* r,
|
||||
/{usr/,}sbin/* r,
|
||||
/usr/libexec/** r,
|
||||
/usr/{lib,libexec}/** r,
|
||||
|
||||
/etc/systemd/coredump.conf r,
|
||||
|
||||
/var/lib/systemd/coredump/ r,
|
||||
owner /var/lib/systemd/coredump/#[0-9]* rw,
|
||||
owner /var/lib/systemd/coredump/core.*.[0-9]*.[0-9a-f]*.[0-9]*.[0-9]*{,.zst} rwl -> /var/lib/systemd/coredump/#[0-9]*,
|
||||
/var/lib/systemd/coredump/ r,
|
||||
/var/lib/systemd/coredump/#[0-9]* rwl,
|
||||
/var/lib/systemd/coredump/core.*.@{uid}.[0-9a-f]*.[0-9]*.[0-9]*.zst rwl,
|
||||
/var/lib/systemd/coredump/core.*.@{uid}.[0-9a-f]*.[0-9]*.[0-9]* rwl,
|
||||
|
||||
owner @{PROC}/@{pid}/setgroups r,
|
||||
@{PROC}/@{pids}/comm r,
|
||||
|
@ -1,5 +1,6 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2020-2021 Mikhail Morfikov
|
||||
# 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
@ -19,5 +20,9 @@ profile systemd-detect-virt @{exec_path} {
|
||||
@{sys}/devices/virtual/dmi/id/board_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/bios_vendor r,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/systemd-detect-virt>
|
||||
}
|
||||
|
@ -37,5 +37,9 @@ profile systemd-sysusers @{exec_path} {
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/systemd-sysusers>
|
||||
}
|
||||
|
@ -48,5 +48,9 @@ profile systemd-tmpfiles @{exec_path} {
|
||||
|
||||
@{PROC}/@{pid}/net/unix r,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/systemd-tmpfiles>
|
||||
}
|
||||
|
@ -91,5 +91,9 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected complain) {
|
||||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/systemd-udevd>
|
||||
}
|
||||
|
@ -10,9 +10,13 @@ include <tunables/global>
|
||||
profile gdk-pixbuf-query-loaders @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/gdk-pixbuf-[0-9].[0-9]*/{,*}/loaders.cache.* rw,
|
||||
/{usr/,}lib/gdk-pixbuf-[0-9].[0-9]*/*/loaders.cache rw,
|
||||
|
||||
include if exists <local/gdk-pixbuf-query-loaders>
|
||||
}
|
@ -15,5 +15,9 @@ profile gio-querymodules @{exec_path} {
|
||||
|
||||
/{usr/,}lib/gtk-{3,4}.0/**/giomodule.cache{,.[0-9A-Z]*} w,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/gio-querymodules>
|
||||
}
|
@ -22,5 +22,9 @@ profile install-info @{exec_path} {
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/install-info>
|
||||
}
|
@ -32,6 +32,7 @@ profile logrotate @{exec_path} flags=(attach_disconnected, complain) {
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/ls rix,
|
||||
/{usr/,}bin/gzip rix,
|
||||
/{usr/,}bin/zstd rix,
|
||||
/{usr/,}{s,}bin/invoke-rc.d rix,
|
||||
/{usr/,}lib/rsyslog/rsyslog-rotate rix,
|
||||
|
||||
|
@ -20,5 +20,9 @@ profile update-desktop-database @{exec_path} {
|
||||
|
||||
/usr/share/*/*.desktop r,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/update-desktop-database>
|
||||
}
|
||||
|
@ -53,6 +53,7 @@ profile xdg-mime @{exec_path} {
|
||||
# file_inherit
|
||||
@{MOUNTS}/** rw,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
profile dbus {
|
||||
include <abstractions/base>
|
||||
|
Loading…
Reference in New Issue
Block a user