staff_sudo_selinux(8)
๐ staff_sudo_selinux(8) โ the glow-up ๐
okay so bestie, this is the staff_sudo_selinux manual page (that's the staff_sudo_selinux(8) vibe, iykyk). it's all about the SELinux policy for staff_sudo processes, and honestly? it's a lot, but we're gonna get through it together. periodt. ๐ซถ
โจ NAME โจ
staff_sudo_selinux โ Security Enhanced Linux Policy for the staff_sudo processes. no cap, that's the whole name. ๐
๐ธ DESCRIPTION ๐ธ
Security-Enhanced Linux secures the staff_sudo processes via flexible mandatory access control. it's giving "your fave is protected" energy. ๐ก๏ธ
the staff_sudo processes execute with the staff_sudo_t SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier. like, literally just:
ps -eZ | grep staff_sudo_t
slay. that's it. that's the check. ๐
๐ฆ ENTRYPOINTS ๐ฆ
the staff_sudo_t SELinux type can be entered via the sudo_exec_t file type. it's giving "VIP access only" โ you gotta come through the right door. ๐ชโจ
the default entrypoint paths for the staff_sudo_t domain are the following, and yes, it's just one icon:
/usr/bin/sudo(edit)?
no cap, that's the whole list. short and iconic. ๐
๐ PROCESS TYPES ๐
okay so SELinux defines process types (domains) for each process running on the system. it's a whole thing. ๐
you can see the context of a process using the -Z option to ps. try it, it's cute. ๐
policy governs the access confined processes have to files. the SELinux staff_sudo policy is very flexible, allowing users to setup their staff_sudo processes in as secure a method as possible. highkey obsessed with the security. ๐ฅ
the following process types are defined for staff_sudo:
staff_sudo_t
note:semanage permissive -a staff_sudo_tcan be used to make the process typestaff_sudo_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's chill but it's still watching you. ๐๐
๐ BOOLEANS ๐
SELinux policy is customizable based on least access required. the staff_sudo policy is extremely flexible and has several booleans that allow you to manipulate the policy and run staff_sudo with the tightest access possible. it's giving "customize your own adventure". ๐ฎโจ
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 run with kerberos, you must turn on the kerberos_enabled boolean. enabled by default. ๐
setsebool -P kerberos_enabled 1
if you want to allow system to run with NIS, you must turn on the nis_enabled boolean. disabled by default. ๐
setsebool -P nis_enabled 1
that's the whole boolean situation. you're welcome. ๐
๐ MANAGED FILES ๐
the SELinux process type staff_sudo_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. so like, SELinux isn't doing everything, bestie. you still gotta have the regular perms too. ๐ค
๐ cifs_t
(no default paths listed, it's mysterious like that. main character energy. ๐ )
๐ ecryptfs_t
/home/[^/]+/.Private(/.*)?/home/[^/]+/.ecryptfs(/.*)?
๐ faillog_t
/var/log/btmp.*/run/faillock(/.*)?/var/log/faillog.*/var/log/tallylog.*
๐ fusefs_t
/run/user/[0-9]+/gvfs
๐ initrc_var_run_t
/run/sysconfig(/.*)?/run/utmp/run/keymap/run/numlock-on/run/setleds-on/run/runlevel.dir/run/setmixer_flag/run/bootsplashctl
๐ krb5_host_rcache_t
/var/tmp/krb5_0.rcache2/var/cache/krb5rcache(/.*)?/var/tmp/nfs_0/var/tmp/DNS_25/var/tmp/host_0/var/tmp/imap_0/var/tmp/HTTP_23/var/tmp/HTTP_48/var/tmp/ldap_55/var/tmp/ldap_487/var/tmp/ldapmap1_0
๐ lastlog_t
/var/log/lastlog.*/var/lib/lastlog(/.*)?
๐ nfs_t
(no default paths listed, still iconic. โจ)
๐ pam_var_run_t
/var/(db|adm)/sudo(/.*)?/run/sudo(/.*)?/run/pam_ssh(/.*)?/run/sepermit(/.*)?/var/lib/sudo(/.*)?/run/pam_mount(/.*)?/run/pam_timestamp(/.*)?
๐ security_t
/selinux
๐ staff_sudo_tmp_t
(no default paths listed, it's a vibe. ๐)
๐ sudo_db_t
/var/db/sudo(/.*)?
๐ sudo_log_t
/var/log/sudo-io(/.*)?/var/log/sudo.log
and that's the whole list. every single path, preserved. you're welcome. ๐
๐ง COMMANDS ๐ง
okay so there are some tools you can use to vibe with this policy:
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. it's giving "graphical slay". ๐ฅ๏ธโจ
๐ AUTHOR ๐
this manual page was auto-generated using sepolicy manpage. so like, not me writing it by hand, but the vibe is still immaculate. ๐
โญ SEE ALSO โญ
selinux(8)staff_sudo(8)semanage(8)restorecon(8)chcon(1)sepolicy(8)setsebool(8)
go read those if you're hungry for more. iykyk. ๐
and that's the whole page, bestie. this was the staff_sudo manual from 26-10-06 (that's the date, no cap), source staff_sudo, version staff_sudo_selinux(8). literally iconic. slay. ๐
โจ๐
๐ฆ 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