afs_fsserver_selinux(8)
π
afs_fsserver_selinux(8) β the SELinux glow-up for afs_fsserver
okay bestie, so this is a page from the SELinux Policy afs_fsserver manual (yeah, it's an (8) β system admin territory, we love that for us), and honestly? It's giving "here's exactly how the afs_fsserver processes get locked down and still get to do their thing." Let's get into it π
β¨ NAME β¨
afs_fsserver_selinux β the Security Enhanced Linux Policy for the afs_fsserver processes. That's it, that's the whole vibe. π
πΈ DESCRIPTION πΈ
So, Security-Enhanced Linux secures the afs_fsserver processes via flexible mandatory access control. Mandatory! Not optional! Not vibes-based! β¨
The afs_fsserver processes execute with the afs_fsserver_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier.
For example:
ps -eZ | grep afs_fsserver_t
Look at you, checking your processes' labels. Main character energy fr fr π
π¦ ENTRYPOINTS π¦
The afs_fsserver_t SELinux type can be entered via the afs_fsserver_exec_t file type. That's the door, bestie β the way in. πͺβ¨
The default entrypoint paths for the afs_fsserver_t domain are literally these:
/usr/afs/bin/salvager, /usr/afs/bin/volserver, /usr/afs/bin/dasalvager,
/usr/afs/bin/fileserver, /usr/afs/bin/davolserver,
/usr/afs/bin/dafileserver, /usr/afs/bin/salvageserver,
/usr/libexec/openafs/salvager, /usr/libexec/openafs/volserver,
/usr/libexec/openafs/fileserver
Three of them live in /usr/libexec/openafs/, seven in /usr/afs/bin/ β the way they organized it? ate π
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. One process, one little designated lane. Slay.
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux afs_fsserver policy is very flexible, allowing users to setup their afs_fsserver processes in as secure a method as possible. Secure but flexible? We contain multitudes. π
The following process types are defined for afs_fsserver:
afs_fsserver_t
Note:semanage permissive -a afs_fsserver_tcan be used to make the process typeafs_fsserver_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So it's not a free pass, it's more like a "we're still watching, we're just not stopping you" moment. ππ
π BOOLEANS π
SELinux policy is customizable based on least access required. The afs_fsserver policy is extremely flexible and has several booleans that allow you to manipulate the policy and run afs_fsserver with the tightest access possible. Tightest access! Minimal privileges! It's giving responsible queen π
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
Heads up: that bool is<green>enabled by default</green>β so it's already on unless someone's been messing with things. π
π§ MANAGED FILES π§
The SELinux process type afs_fsserver_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions β SELinux is not out here doing DAC's homework for it, bestie. π
afs_files_t
/usr/afs(/.*)?
/vicepa
/vicepb
/vicepc
afs_logfile_t
/usr/afs/logs(/.*)?
Two file types, all the paths accounted for, no notes. We love a clean list. β¨
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. Yes, every file's got a little label living on it. It's basically a name tag but for security policy. π·οΈ
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 afs_fsserver policy is very flexible, allowing users to setup their afs_fsserver processes in as secure a method as possible. (Yes, it says that twice in this page. It's consistent, okay, respect it. π
)
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the afs_fsserver. 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 afs_fsserver_exec_t '/srv/afs_fsserver/content(/.*)?'
restorecon -R -v /srv/myafs_fsserver_content
That's the one-two combo: semanage registers the rule, restorecon actually slaps the labels on. π
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex jumpscare, but make it organized. π₯
The following file types are defined for afs_fsserver:
afs_fsserver_exec_t
- Set files with the
afs_fsserver_exec_ttype, if you want to transition an executable to theafs_fsserver_tdomain. That's the whole assignment. π«Ά
Paths:
/usr/afs/bin/salvager, /usr/afs/bin/volserver,
/usr/afs/bin/dasalvager, /usr/afs/bin/fileserver,
/usr/afs/bin/davolserver, /usr/afs/bin/dafileserver,
/usr/afs/bin/salvageserver, /usr/libexec/openafs/salvager,
/usr/libexec/openafs/volserver, /usr/libexec/openafs/fileserver
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. So:chcon= temporary glow-up,semanage fcontext+restorecon= permanent. No cap. β¨
π 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 instead of typing. π±οΈπ
π¦ AUTHOR π¦
This manual page was auto-generated using sepolicy manpage. A robot wrote it and honestly? It ate. π€β¨
π SEE ALSO π
selinux(8), afs_fsserver(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
and that's the whole page, bestie π«Ά this was afs_fsserver β dated <purple>26-10-06</purple> β living in <rainbow>afs_fsserver_selinux(8)</rainbow>. go forth and label responsibly ππΈ
π¦ 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