games_selinux(8)
โจ games_selinux(8) โจ
okay so bestie, you're reading the games_selinux page from the SELinux Policy games manual โ yeah, the whole thing lives under that games manual name, iykyk ๐
. buckle up, we're getting into it.
๐ NAME ๐
games_selinux โ Security Enhanced Linux Policy for the games processes ๐ฎโจ
๐ฆ DESCRIPTION ๐ฆ
Security-Enhanced Linux secures the games processes via flexible mandatory access control. that's the whole vibe โ SELinux is the bouncer at the club and it is not letting just anyone in ๐ซถ.
The games processes execute with the games_t SELinux type. wanna check if you've got these processes running? just execute the ps command with the -Z qualifier, easy.
for example:
ps -eZ | grep games_t
literally that simple, no cap.
๐ธ ENTRYPOINTS ๐ธ
The games_t SELinux type can be entered via the games_exec_t file type. that's the door ๐ชโจ
The default entrypoint paths for the games_t domain are the following โ and bestie there are so many, do not lose focus:
/usr/games/.*, /usr/lib/games(/.*)?, /usr/bin/civclient.*,
/usr/bin/civserver.*, /usr/bin/sol, /usr/bin/kolf, /usr/bin/kpat,
/usr/bin/micq, /usr/bin/gnect, /usr/bin/gtali, /usr/bin/iagno,
/usr/bin/ksame, /usr/bin/ktron, /usr/bin/kwin4, /usr/bin/lskat,
/usr/bin/gataxx, /usr/bin/glines, /usr/bin/klines, /usr/bin/kmines,
/usr/bin/kpoker, /usr/bin/ksnake, /usr/bin/gnomine, /usr/bin/gnotski,
/usr/bin/katomic, /usr/bin/kbounce, /usr/bin/kshisen, /usr/bin/ksirtet,
/usr/bin/atlantik, /usr/bin/gnibbles, /usr/bin/gnobots2,
/usr/bin/kenolaba, /usr/bin/klickety, /usr/bin/konquest,
/usr/bin/kreversi, /usr/bin/ksokoban, /usr/bin/mahjongg,
/usr/bin/Maelstrom, /usr/bin/blackjack, /usr/bin/gnotravex,
/usr/bin/kblackbox, /usr/bin/kfouleggs, /usr/bin/kmahjongg,
/usr/bin/kwin4proc, /usr/bin/lskatproc, /usr/bin/kasteroids,
/usr/bin/ksmiletris, /usr/bin/kspaceduel, /usr/bin/ktuberling,
/usr/bin/same-gnome, /usr/bin/kbackgammon, /usr/bin/kbattleship,
/usr/bin/kgoldrunner, /usr/bin/gnome-stones, /usr/bin/kjumpingcube
likeโฆ that's a lot of games, iconic behavior honestly ๐๐
๐ PROCESS TYPES ๐
SELinux defines process types (domains) for each process running on the system. yes, every single one gets a little label, main character energy.
you can see the context of a process using the -Z option to ps ๐
Policy governs the access confined processes have to files. SELinux games policy is very flexible, allowing users to setup their games processes in as secure a method as possible. slay, security edition.
The following process types are defined for games:
games_t, games_srv_t
Note:semanage permissive -a games_tcan be used to make the process typegames_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking you but it still talks about you. rude but helpful ๐
๐ BOOLEANS ๐
SELinux policy is customizable based on least access required. games policy is extremely flexible and has several booleans that allow you to manipulate the policy and run games with the tightest access possible. so many little switches, we love options ๐
deny_execmem โ if you want to deny user domains applications to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla, you must turn on the deny_execmem boolean. Disabled by default. โ ๏ธ
setsebool -P deny_execmem 1
fips_mode โ if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. โ
setsebool -P fips_mode 1
nscd_use_shm โ if you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Enabled by default. โ
setsebool -P nscd_use_shm 1
selinuxuser_direct_dri_enabled โ if you want to allow regular users direct dri device access, you must turn on the selinuxuser_direct_dri_enabled boolean. Disabled by default. ๐ซ
setsebool -P selinuxuser_direct_dri_enabled 1
xserver_clients_write_xshm โ if you want to allows clients to write to the X server shared memory segments, you must turn on the xserver_clients_write_xshm boolean. Disabled by default. ๐ซ
setsebool -P xserver_clients_write_xshm 1
๐ MANAGED FILES ๐
The SELinux process type games_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and bestie, note the processes UID still need to have DAC permissions โ SELinux isn't doing everything for you, okay? ๐
games_data_t
/var/games(/.*)?
/var/lib/games(/.*)?
games_tmp_t
(no paths listed, that's just how it is ๐ซถ)
games_tmpfs_t
(also no paths listed โจ)
user_fonts_cache_t
/root/.fontconfig(/.*)?
/root/.fonts/auto(/.*)?
/root/.fonts.cache-.*
/root/.cache/fontconfig(/.*)?
/home/[^/]+/.fontconfig(/.*)?
/home/[^/]+/.fonts/auto(/.*)?
/home/[^/]+/.fonts.cache-.*
/home/[^/]+/.cache/fontconfig(/.*)?
๐ FILE CONTEXTS ๐
SELinux requires files to have an extended attribute to define the file type. every file's got a little name tag, adorable.
you can see the context of a file using the -Z option to ls ๐
Policy governs the access confined processes have to these files. SELinux games policy is very flexible, allowing users to setup their games processes in as secure a method as possible. again. still true. ๐ธ
โญ STANDARD FILE CONTEXT โญ
SELinux defines the file context types for the games, if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.
semanage fcontext -a -t games_exec_t '/srv/games/content(/.*)?'
restorecon -R -v /srv/mygames_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved ๐ญ
The following file types are defined for games:
games_data_t
- Set files with the
games_data_ttype, if you want to treat the files as games content.
Paths:
/var/games(/.*)?, /var/lib/games(/.*)?
games_exec_t
- Set files with the
games_exec_ttype, if you want to transition an executable to thegames_tdomain.
Paths:
/usr/games/.*, /usr/lib/games(/.*)?, /usr/bin/civclient.*,
/usr/bin/civserver.*, /usr/bin/sol, /usr/bin/kolf, /usr/bin/kpat,
/usr/bin/micq, /usr/bin/gnect, /usr/bin/gtali, /usr/bin/iagno,
/usr/bin/ksame, /usr/bin/ktron, /usr/bin/kwin4, /usr/bin/lskat,
/usr/bin/gataxx, /usr/bin/glines, /usr/bin/klines, /usr/bin/kmines,
/usr/bin/kpoker, /usr/bin/ksnake, /usr/bin/gnomine,
/usr/bin/gnotski, /usr/bin/katomic, /usr/bin/kbounce,
/usr/bin/kshisen, /usr/bin/ksirtet, /usr/bin/atlantik,
/usr/bin/gnibbles, /usr/bin/gnobots2, /usr/bin/kenolaba,
/usr/bin/klickety, /usr/bin/konquest, /usr/bin/kreversi,
/usr/bin/ksokoban, /usr/bin/mahjongg, /usr/bin/Maelstrom,
/usr/bin/blackjack, /usr/bin/gnotravex, /usr/bin/kblackbox,
/usr/bin/kfouleggs, /usr/bin/kmahjongg, /usr/bin/kwin4proc,
/usr/bin/lskatproc, /usr/bin/kasteroids, /usr/bin/ksmiletris,
/usr/bin/kspaceduel, /usr/bin/ktuberling, /usr/bin/same-gnome,
/usr/bin/kbackgammon, /usr/bin/kbattleship, /usr/bin/kgoldrunner,
/usr/bin/gnome-stones, /usr/bin/kjumpingcube
games_srv_var_run_t
- Set files with the
games_srv_var_run_ttype, if you want to store the games srv files under the/runor/var/rundirectory.
games_tmp_t
- Set files with the
games_tmp_ttype, if you want to store games temporary files in the/tmpdirectories.
games_tmpfs_t
- Set files with the
games_tmpfs_ttype, if you want to store games files on a tmpfs file system.
Note: File context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. temporary vs permanent, choose wisely bestie ๐
๐ฅ COMMANDS ๐ฅ
semanage fcontext can also be used to manipulate default file context mappings.
semanage permissive can also be used to manipulate whether or not a process type is permissive.
semanage module can also be used to enable/disable/install/remove policy modules.
semanage boolean can also be used to manipulate the booleans
system-config-selinux is a GUI tool available to customize SELinux policy settings. a GUI!! for the girlies who like clicking ๐ฑ๏ธโจ
๐ง AUTHOR ๐ง
This manual page was auto-generated using sepolicy manpage . yes, a robot wrote it. and now i'm rewriting it. we're through the looking glass fr fr ๐ญ
๐ SEE ALSO ๐
selinux(8), games(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), games_srv_selinux(8), games_srv_selinux(8)
(yeah games_srv_selinux(8) is in there twice, that's the original's business not mine ๐ซถ)
and that's the whole page bestie!! this one came from the games manual, dated 26-10-06 โ go forth and game securely, mwah ๐๐
๐ฆ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms