# apparmor.d - Full set of apparmor profiles # Copyright (C) 2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/loupe profile loupe @{exec_path} flags=(attach_disconnected) { include include include include include include include include signal send set=kill peer=loupe//bwrap, #aa:dbus talk bus=session name=org.gtk.vfs label="gvfsd{,-*}" @{exec_path} mr, @{bin}/bwrap rCx -> bwrap, @{open_path} rPx -> child-open-help, /usr/share/glycin-loaders/{,**} r, / r, owner @{user_cache_dirs}/glycin/{,**} rw, @{run}/mount/utab r, @{sys}/fs/cgroup/user.slice/cpu.max r, @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/cpu.max r, @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/cpu.max r, @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/cpu.max r, owner @{PROC}/@{pid}/cgroup r, owner @{PROC}/@{pid}/cmdline r, owner @{PROC}/@{pid}/mountinfo r, owner @{PROC}/@{pid}/task/@{tid}/comm rw, deny @{user_share_dirs}/gvfs-metadata/* r, profile bwrap flags=(attach_disconnected) { include include signal (receive) set=(kill) peer=loupe, @{bin}/bwrap mr, @{lib}/glycin-loaders/*/glycin-* rix, owner @{PROC}/@{pid}/fd/ r, deny @{user_share_dirs}/gvfs-metadata/* r, include if exists } include if exists } # vim:syntax=apparmor