feat(profile): update steam profiles.
- Still a wip stage - Not shipped by default
This commit is contained in:
parent
5e6af16580
commit
7d1380530a
9 changed files with 248 additions and 115 deletions
43
apparmor.d/profiles-s-z/steam-runtime
Normal file
43
apparmor.d/profiles-s-z/steam-runtime
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# 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>
|
||||
|
||||
@{share_dirs} = @{user_share_dirs}/Steam
|
||||
@{lib_dirs} = @{share_dirs}/ubuntu@{int2}_{32,64}
|
||||
@{runtime_dirs} = @{share_dirs}/steamapps/common/SteamLinuxRuntime_sniper
|
||||
|
||||
@{exec_path} = @{bin}/steam @{bin}/steam-runtime
|
||||
profile steam-runtime @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
|
||||
unix (receive) type=stream,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/cp rix,
|
||||
@{bin}/dirname rix,
|
||||
@{bin}/env rix,
|
||||
@{bin}/id rix,
|
||||
@{bin}/readlink rix,
|
||||
|
||||
@{lib}/steam/steam rix,
|
||||
@{lib}/steam/bin_steam.sh rix,
|
||||
@{share_dirs}/steam.sh rPx,
|
||||
|
||||
/usr/ r,
|
||||
/usr/local/ r,
|
||||
|
||||
owner @{share_dirs}/bootstrap.tar.xz rw,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
deny /opt/** r,
|
||||
|
||||
include if exists <local/steam-runtime>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue