57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# TODO: Rethink this profile:
|
|
# - Access to gio from a profile is handled by child-open-*
|
|
# - Direct access should only be needed is some special context and it should not
|
|
# require access to that much resources.
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/gio
|
|
@{exec_path} += @{bin}/gio-launch-desktop @{lib}/gio-launch-desktop
|
|
@{exec_path} += @{lib}/@{multiarch}/glib-@{version}/gio-launch-desktop
|
|
profile gio-launch-desktop @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/app-launcher-user>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus/org.gtk.vfs.Metadata>
|
|
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
|
include <abstractions/consoles>
|
|
include <abstractions/deny-sensitive-home>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/trash-strict>
|
|
include <abstractions/user-read-strict>
|
|
include <abstractions/user-write-strict>
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/gnome-terminal rPUx,
|
|
@{lib}/gio-launch-desktop rix,
|
|
@{lib}/*/** rPx,
|
|
@{lib}/* rPx,
|
|
|
|
owner @{HOME}/{,**} rw,
|
|
|
|
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
|
|
|
owner @{tmp}/wl-copy-buffer-@{rand6}/stdin r,
|
|
|
|
@{run}/mount/utab r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
/dev/dri/card@{int} rw,
|
|
|
|
|
|
include if exists <local/gio-launch-desktop>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|