Rules fix.

This commit is contained in:
Alexandre Pujol 2021-04-07 18:05:15 +01:00
parent 9446af57f8
commit 04f2d2c9a3
Failed to generate hash of commit
9 changed files with 14 additions and 3 deletions

View file

@ -14,6 +14,8 @@ profile accounts-daemon @{exec_path} {
include <abstractions/nameservice-strict>
# Needed?
capability dac_read_search,
capability sys_ptrace,
deny capability sys_nice,
@{exec_path} mr,

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -19,6 +20,7 @@ profile gvfsd-fuse @{exec_path} {
/dev/fuse rw,
@{PROC}/sys/fs/pipe-max-size r,
profile fusermount {
include <abstractions/base>

View file

@ -13,6 +13,7 @@ profile systemd-rfkill @{exec_path} {
include <abstractions/systemd-common>
capability net_admin,
capability sys_ptrace,
network netlink raw,

View file

@ -21,6 +21,7 @@ profile systemd-tmpfiles @{exec_path} {
@{exec_path} mr,
/etc/machine-id r,
/etc/brlapi.key w,
/usr/share/factory/{,**} r,
# Config file locations

View file

@ -22,8 +22,8 @@ profile browserpass @{exec_path} {
owner @{HOME}/.password-store/{,**} r,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/.parentlock rw,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/extensions/* r,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/startupCache/scriptCache-*.bin r,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/startupCache/startupCache.*.little r,
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/scriptCache-*.bin r,
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/startupCache.*.little r,
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,

View file

@ -18,6 +18,7 @@ include <tunables/global>
profile git @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/nameservice-strict>

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /usr/share/zsh-theme-powerlevel10k/gitstatus/usrbin/gitstatusd{,-*}
@{exec_path} = /usr/share/zsh-theme-powerlevel[0-9]*k/gitstatus/usrbin/gitstatusd{,-*}
profile gitstatusd @{exec_path} {
include <abstractions/base>

View file

@ -16,6 +16,7 @@ profile polkitd @{exec_path} {
capability setgid,
# Needed?
capability sys_ptrace,
audit deny capability net_admin,
@{exec_path} mr,

View file

@ -23,6 +23,9 @@ profile udisksd @{exec_path} flags=(attach_disconnected) {
# Error mounting /dev/sd* at /media/*/*: Operation not permitted.
capability sys_admin,
capability dac_read_search,
capability dac_override,
# Needed?
deny capability sys_nice,