winbind_h...r_selinux(8)

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

πŸ’… winbind_h...r_selinux(8) β€” the winbind_helper glow-up, bestie

okay so real talk, this page is from the winbind_h...r_selinux(8) manual, and it's literally all about how SELinux keeps an eye on your winbind_helper processes. it's giving "mandatory access control but make it fashion" πŸŽ€


✨ NAME ✨

winbind_helper_selinux β€” the Security Enhanced Linux Policy for the winbind_helper processes 🫢


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the winbind_helper processes via flexible mandatory access control. that's the whole vibe: SELinux is the bouncer at the club and it checks literally everyone πŸ”₯

the winbind_helper processes execute with the winbind_helper_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier, easy:

ps -eZ | grep winbind_helper_t

like, that's it. slay. ✨


πŸ¦‹ ENTRYPOINTS πŸ¦‹

so the winbind_helper_t SELinux type can be entered via the winbind_helper_exec_t file type β€” that's the little doorway πŸ‘‘

the default entrypoint paths for the winbind_helper_t domain are, and i cannot stress this enough:

/usr/bin/ntlm_auth

one path. iconic. no notes. πŸ’…


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system, bestie. that's just how it is.

you can see the context of a process using the -Z option to ps πŸ‘€

policy governs the access confined processes have to files. the SELinux winbind_helper policy is very flexible, allowing users to setup their winbind_helper processes in as secure a method as possible.

the following process types are defined for winbind_helper:

  • winbind_helper_t
Note: semanage permissive -a winbind_helper_t can be used to make the process type winbind_helper_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, you're not off the hook, the receipts still exist 😭

πŸ“ BOOLEANS πŸ“

SELinux policy is customizable based on least access required β€” main character energy, honestly. the winbind_helper policy is extremely flexible and has several booleans that allow you to manipulate the policy and run winbind_helper with the tightest access possible.

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 Apache to use mod_auth_ntlm_winbind, you must turn on the httpd_mod_auth_ntlm_winbind boolean. Disabled by default.

setsebool -P httpd_mod_auth_ntlm_winbind 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

flip 'em on only when you actually need 'em, okay? least access required is the whole point 🧚


🌈 MANAGED FILES 🌈

the SELinux process type winbind_helper_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and like β€” Note: the process's UID still needs to have DAC permissions. SELinux ain't doing that part for you, bestie πŸ’€

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

look at all those cache paths living their best life πŸŽ€


πŸ’œ FILE CONTEXTS πŸ’œ

SELinux requires files to have an extended attribute to define the file type. literally mandatory, no cap.

you can see the context of a file using the -Z option to ls πŸ‘€

policy governs the access confined processes have to these files. the SELinux winbind_helper policy is very flexible, allowing users to setup their winbind_helper processes in as secure a method as possible.


πŸŽ€ STANDARD FILE CONTEXT πŸŽ€

SELinux defines the file context types for the winbind_helper. so if you wanted to store files with these types in different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. like so:

semanage fcontext -a -t winbind_helper_exec_t '/srv/winbind_helper/content(/.*)?'
restorecon -R -v /srv/mywinbind_helper_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. that's why there's all that (/.*)? business β€” it's matching a whole tree, not one file 🌸

the following file types are defined for winbind_helper:

  • winbind_helper_exec_t β€” set files with the winbind_helper_exec_t type if you want to transition an executable to the winbind_helper_t domain. that's the whole transition pipeline, periodt πŸ’…
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. chcon is a temporary fix and it will absolutely not survive a relabel, i'm warning you now 😭

⭐ 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. yes, a GUI. for when the terminal isn't giving today πŸ–₯️✨


🧚 AUTHOR 🧚

this manual page was auto-generated using sepolicy manpage. a robot wrote it, i just made it cute 🫢


πŸ’– SEE ALSO πŸ’–

selinux(8), winbind_helper(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)

go read those next, i'm obsessed with you for making it this far πŸ¦‹


and that's the whole page, bestie!! πŸŽ€ this was winbind_helper from the winbind_h...r_selinux(8) manual, dated 26-10-06 β€” mwah, go forth and label responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from