feat(profile): general update.
This commit is contained in:
parent
9e7c4c7ec8
commit
ab7f45bc31
26 changed files with 53 additions and 111 deletions
|
|
@ -10,6 +10,7 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/e2fsck @{bin}/fsck.ext2 @{bin}/fsck.ext3 @{bin}/fsck.ext4
|
||||
profile e2fsck @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/disks-write>
|
||||
include <abstractions/user-download-strict>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,14 +10,10 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/fdisk
|
||||
profile fdisk @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/disks-write>
|
||||
|
||||
# Needed to inform the system of newly created/removed partitions
|
||||
# ioctl(3, BLKRRPART) = -1 EACCES (Permission denied)
|
||||
capability sys_admin,
|
||||
|
||||
# To remove the following errors:
|
||||
# kernel: device-mapper: core: fdisk: sending ioctl 5331 to DM device without required privilege.
|
||||
capability sys_rawio,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@ include <tunables/global>
|
|||
profile flatpak-session-helper @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-session>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/p11-kit>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/consoles>
|
||||
|
||||
signal (send) set=(hup int) peer=user_unconfined,
|
||||
signal (send) set=(int) peer=@{p_systemd},
|
||||
signal (send) set=(int) peer=flatpak-app,
|
||||
signal send set=(hup int) peer=user_unconfined,
|
||||
signal send set=(int) peer=@{p_systemd},
|
||||
signal send set=(int) peer=flatpak-app,
|
||||
|
||||
#aa:dbus own bus=session name=org.freedesktop.Flatpak
|
||||
|
||||
|
|
@ -27,11 +27,13 @@ profile flatpak-session-helper @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/dbus-monitor rPUx,
|
||||
@{bin}/env rix,
|
||||
@{bin}/flatpak rPx,
|
||||
@{bin}/test rix,
|
||||
@{bin}/getent rix,
|
||||
@{bin}/p11-kit rix,
|
||||
@{bin}/pkexec rPx, # TODO: too wide, rCx.
|
||||
@{bin}/printenv rix,
|
||||
@{bin}/ps rPx,
|
||||
@{bin}/test rix,
|
||||
@{bin}/touch rix,
|
||||
@{lib}/p11-kit/p11-kit-remote rix,
|
||||
@{lib}/p11-kit/p11-kit-server rix,
|
||||
/var/lib/flatpak/app/*/**/@{bin}/** rPx -> flatpak-app,
|
||||
|
|
|
|||
|
|
@ -8,17 +8,18 @@ abi <abi/3.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/fwupdmgr
|
||||
profile fwupdmgr @{exec_path} flags=(attach_disconnected,complain) {
|
||||
profile fwupdmgr @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.NetworkManager>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
capability sys_nice,
|
||||
|
||||
signal (send),
|
||||
signal send,
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
|
@ -30,19 +31,16 @@ profile fwupdmgr @{exec_path} flags=(attach_disconnected,complain) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/dbus-launch rCx -> dbus,
|
||||
@{bin}/pkttyagent rPx,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
@{bin}/dbus-launch Cx -> bus,
|
||||
@{bin}/pkttyagent Px,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
owner /var/cache/private/fwupdmgr/fwupd/lvfs-metadata.xml.gz{,.asc}.* rw,
|
||||
owner /var/cache/private/fwupdmgr/fwupd/lvfs-metadata.xml.gz{,.asc} rw,
|
||||
/var/lib/flatpak/exports/share/mime/mime.cache r,
|
||||
|
||||
owner @{user_cache_dirs}/ rw,
|
||||
@{user_cache_dirs}/dconf/user rw,
|
||||
owner @{user_cache_dirs}/ rw,
|
||||
owner @{user_cache_dirs}/fwupd/ rw,
|
||||
owner @{user_cache_dirs}/fwupd/lvfs-metadata.xml.gz{,.*} rw,
|
||||
|
||||
|
|
@ -53,14 +51,9 @@ profile fwupdmgr @{exec_path} flags=(attach_disconnected,complain) {
|
|||
/dev/i2c-@{int} rw,
|
||||
/dev/tty rw,
|
||||
|
||||
profile dbus {
|
||||
profile bus flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{bin}/dbus-launch mr,
|
||||
|
||||
owner @{HOME}/.Xauthority r,
|
||||
|
||||
include <abstractions/app/bus>
|
||||
include if exists <local/fwupdmgr_dbus>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue