42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{runtime} = SteamLinuxRuntime_sniper
|
|
@{share_dirs} = @{user_share_dirs}/Steam @{HOME}/.steam/debian-installation
|
|
@{lib_dirs} = @{share_dirs}/ubuntu@{int2}_{32,64} @{share_dirs}/linux{32,64}
|
|
@{runtime_dirs} = @{lib_dirs}/steam-runtime{,-sniper}
|
|
@{app_dirs} = @{share_dirs}/steamapps/common/
|
|
|
|
@{exec_path} = @{lib_dirs}/steamerrorreporter
|
|
profile steamerrorreporter @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
network inet dgram,
|
|
network inet stream,
|
|
network inet6 dgram,
|
|
network inet6 stream,
|
|
network unix stream,
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{HOME}/.steam/steam.pipe r,
|
|
|
|
owner @{lib_dirs}/{,**} r,
|
|
owner @{runtime_dirs}/pinned_libs_{32,64}/ r,
|
|
owner @{share_dirs}/ r,
|
|
|
|
owner @{tmp}/dumps/ r,
|
|
owner @{tmp}/dumps/*_log.txt rw,
|
|
|
|
owner @{PROC}/@{pid}/status r,
|
|
|
|
include if exists <local/steamerrorreporter>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|