mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add some ubuntu specific profiles.
This commit is contained in:
parent
e29e839c62
commit
908aba0385
3 changed files with 57 additions and 0 deletions
32
apparmor.d/groups/ubuntu/apport
Normal file
32
apparmor.d/groups/ubuntu/apport
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /usr/share/apport/apport
|
||||||
|
profile apport @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/apt-common>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/openssl>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
capability fsetid,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/usr/share/apport/ r,
|
||||||
|
|
||||||
|
/var/crash/ rw,
|
||||||
|
owner /var/log/apport.log rw,
|
||||||
|
|
||||||
|
@{PROC}/sys/fs/suid_dumpable w,
|
||||||
|
@{PROC}/sys/kernel/core_pattern r,
|
||||||
|
@{PROC}/sys/kernel/core_pattern w,
|
||||||
|
@{PROC}/sys/kernel/core_pipe_limit w,
|
||||||
|
|
||||||
|
include if exists <local/apport>
|
||||||
|
}
|
23
apparmor.d/groups/ubuntu/package-data-downloader
Normal file
23
apparmor.d/groups/ubuntu/package-data-downloader
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{lib}/update-notifier/package-data-downloader
|
||||||
|
profile package-data-downloader @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/apt-common>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/var/lib/update-notifier/package-data-downloads/{,**} rw,
|
||||||
|
|
||||||
|
/usr/share/package-data-downloads/ r,
|
||||||
|
|
||||||
|
include if exists <local/package-data-downloader>
|
||||||
|
}
|
|
@ -25,6 +25,7 @@ akonadi_notes_agent complain
|
||||||
akonadi_sendlater_agent complain
|
akonadi_sendlater_agent complain
|
||||||
akonadi_unifiedmailbox_agent complain
|
akonadi_unifiedmailbox_agent complain
|
||||||
anacron complain
|
anacron complain
|
||||||
|
apport complain
|
||||||
at-spi-bus-launcher attach_disconnected,complain
|
at-spi-bus-launcher attach_disconnected,complain
|
||||||
at-spi2-registryd attach_disconnected,complain
|
at-spi2-registryd attach_disconnected,complain
|
||||||
atd complain
|
atd complain
|
||||||
|
@ -224,6 +225,7 @@ nvidia-detector complain
|
||||||
nvidia-persistenced complain
|
nvidia-persistenced complain
|
||||||
org.gnome.NautilusPreviewer complain
|
org.gnome.NautilusPreviewer complain
|
||||||
os-prober attach_disconnected,complain
|
os-prober attach_disconnected,complain
|
||||||
|
package-data-downloader complain
|
||||||
packagekitd attach_disconnected,complain
|
packagekitd attach_disconnected,complain
|
||||||
pass-import complain
|
pass-import complain
|
||||||
passim complain
|
passim complain
|
||||||
|
|
Loading…
Reference in a new issue