showmount_selinux(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 7 versions
, in opensuse-leap 16.0

πŸ’… 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_t can be used to make the process type showmount_t permissive. 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 the showmount_exec_t type, if you want to transition an executable to the showmount_t domain.
Note: file context can be temporarily modified with the chcon command. if you want to permanently change the file context you need to use the semanage fcontext command. this will modify the SELinux labeling database. you will need to use restorecon to 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 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 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