apparmor.d/apparmor.d/profiles-s-z/steam-gameoverlayui
2023-03-10 10:22:23 +00:00

65 lines
1.7 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{steam_lib_dirs} = @{user_share_dirs}/Steam/ubuntu[0-9]*_{32,64}
@{exec_path} = @{steam_lib_dirs}/gameoverlayui
profile steam-gameoverlayui @{exec_path} {
include <abstractions/base>
include <abstractions/audio>
include <abstractions/fonts>
include <abstractions/nvidia>
network inet stream,
network inet6 stream,
unix (receive) type=stream,
@{exec_path} mr,
@{steam_lib_dirs}/*.so* mr,
@{steam_lib_dirs}/steam-runtime/{usr/,}lib/**.so* mr,
/usr/share/fonts/{,**} rk, # ?
/ r,
/home/ r,
/tmp/ r,
owner @{HOME}/ r,
owner @{HOME}/.steam/registry.vdf rk,
owner @{HOME}/.steam/steam.pipe r,
owner @{steam_lib_dirs}/fontconfig/{,**} rwl,
owner @{user_share_dirs}/Steam/{,**} r,
owner @{user_share_dirs}/Steam/config/DialogConfigOverlay*.vdf rw,
owner @{user_share_dirs}/Steam/public/* rk,
owner @{user_share_dirs}/Steam/resource/{,**} rk,
owner @{user_share_dirs}/Steam/userdata/[0-9]*/{,**} rk,
owner /var/cache/fontconfig/ rw,
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[0-9A-Z]* rw,
owner @{run}/user/@{uid}/gdm/Xauthority r,
owner /dev/shm/u@{uid}-Shm_@{hex} rw,
owner /dev/shm/u@{uid}-ValveIPCSharedObj-* rwk,
owner /dev/shm/ValveIPCSHM_@{uid} rw,
owner /tmp/gameoverlayui.log* rw,
owner /tmp/steam_chrome_overlay_uid@{uid}_spid@{pids} rw,
owner /tmp/miles_image_* mrw,
@{sys}/ r,
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/cpuinfo_max_freq r,
@{sys}/kernel/ r,
@{PROC}/version r,
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
include if exists <local/steam-gameoverlayui>
}