showmount_selinux(8)
π showmount_selinux β the manual page, but make it make sense
okay bestie so this is showmount_selinux(8), which is the SELinux policy page for the showmount processes. it lives in the SELinux Policy showmount section of the manual and honestly? it's giving "niche but important." let's get into it π«Ά
β¨ NAME β¨
showmount_selinux β Security Enhanced Linux Policy for the showmount processes. that's it, that's the whole name. short, sweet, iconic π
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the showmount processes via flexible mandatory access control. yes, "mandatory" β like your mom making you come home by curfew, except it's the kernel and it does not negotiate π
the showmount processes execute with the showmount_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. easy.
for example:
ps -eZ | grep showmount_t
literally that's it. -Z shows the context, grep finds the vibe, slay π₯
π¦ ENTRYPOINTS π¦
okay so the showmount_t SELinux type can be entered via the showmount_exec_t file type. entrypoint = the door you walk through to become this domain. main character energy, honestly.
the default entrypoint paths for the showmount_t domain are the following:
/usr/bin/showmount
one path. one door. we love a singular vibe π
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. no cap.
you can see the context of a process using the -Z option to ps.
policy governs the access confined processes have to files. SELinux showmount policy is very flexible, allowing users to setup their showmount processes in as secure a method as possible. flexible AND secure? she contains multitudes π
the following process types are defined for showmount:
showmount_t
Note:semanage permissive -a showmount_tcan be used to make the process typeshowmount_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated.
so likeβ¦ permissive mode won't block you, but it's still gonna snitch in the logs. the audacity π
β BOOLEANS β
SELinux policy is customizable based on least access required. showmount policy is extremely flexible and has several booleans that allow you to manipulate the policy and run showmount with the tightest access possible. tightest access = locked down, no crumbs left for anyone else π
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
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
both already on by default, so like, they're serving default-on realness. still, good to know the toggle exists β¨
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type. yes, files have vibes and the vibes are written in extended attributes. that's just how it is.
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 showmount policy is very flexible, allowing users to setup their showmount processes in as secure a method as possible.
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the showmount. 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. label it, then actually apply it β two steps, no skipping π
semanage fcontext -a -t showmount_exec_t '/srv/showmount/content(/.*)?'
restorecon -R -v /srv/myshowmount_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved π
the following file types are defined for showmount:
showmount_exec_tβ set files with theshowmount_exec_ttype, if you want to transition an executable to theshowmount_tdomain.
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 = quick little temporary glow-up that might get wiped, semanage fcontext + restorecon = permanent records at the dmv. iykyk π
π COMMANDS π
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings. a GUI!! for the girlies who prefer clicking over typing, respectfully π«Ά
π AUTHOR π
this manual page was auto-generated using sepolicy manpage. not me being auto-generated and still having more personality than half the manpages out there πβ¨
π₯ SEE ALSO π₯
selinux(8), showmount(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
go read those too, bestie. cross-referencing is self-care π¦
and that's the page!! π this was showmount (showmount_selinux(8)), dated 26-10-06, and it ships in the showmount release you're looking at right now. mwah, go label your files, periodt ππ
π¦ 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