winbind_selinux(8) - Linux man page
Name
winbind_selinux - Security Enhanced Linux Policy for the winbind processes
Description
Security-Enhanced Linux secures the winbind processes via flexible mandatory access control.
The winbind processes execute with the winbind_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 winbind_t
Entrypoints
The winbind_t SELinux type can be entered via the "winbind_exec_t" file type. The default entrypoint paths for the winbind_t domain are the following:"
/usr/sbin/winbindd
Process Types
SELinux defines process types (domains) for each process running on the system
You can see the context of a process using the -Z option to ps
Policy governs the access confined processes have to files. SELinux winbind policy is very flexible allowing users to setup their winbind processes in as secure a method as possible.
The following process types are defined for winbind:
winbind_helper_t, winbind_t
Note: semanage permissive -a winbind_t
can be used to make the process type winbind_t permissive. Permissive process types are not denied access by SELinux. AVC messages will still be generated.
Booleans
SELinux policy is customizable based on least access required. winbind policy is extremely flexible and has several booleans that allow you to manipulate the policy and run winbind with the tightest access possible.
If you want to allow Apache to use mod_auth_ntlm_winbind, you must turn on the allow_httpd_mod_auth_ntlm_winbind boolean.
setsebool -P allow_httpd_mod_auth_ntlm_winbind 1
If you want to allow Apache to use mod_auth_ntlm_winbind, you must turn on the allow_httpd_mod_auth_ntlm_winbind boolean.
setsebool -P allow_httpd_mod_auth_ntlm_winbind 1
File Contexts
SELinux requires files to have an extended attribute to define the file type.
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 winbind policy is very flexible allowing users to setup their winbind processes in as secure a method as possible.
The following file types are defined for winbind:
winbind_exec_t
- Set files with the winbind_exec_t type, if you want to transition an executable to the winbind_t domain.
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.
winbind_log_t
- Set files with the winbind_log_t type, if you want to treat the data as winbind log data, usually stored under the /var/log directory.
winbind_var_run_t
- Set files with the winbind_var_run_t type, if you want to store the winbind files under the /run directory.
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.
Managed Files
The SELinux process type winbind_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.
auth_cache_t
/var/cache/coolkey(/.*)?
- ctdbd_var_lib_t
/etc/ctdb(/.*)?
/var/ctdb(/.*)?
/var/ctdbd(/.*)?
/var/lib/ctdbd(/.*)?
- faillog_t
/var/log/btmp.*
/var/log/faillog.*
/var/log/tallylog.*
/var/run/faillock(/.*)?
- initrc_tmp_t
mnt_t
/mnt(/[^/]*)
/mnt(/[^/]*)?
/rhev(/[^/]*)?
/media(/[^/]*)
/media(/[^/]*)?
/etc/rhgb(/.*)?
/media/.hal-.*
/net
/afs
/misc
/rhev
- pcscd_var_run_t
/var/run/pcscd.events(/.*)?
/var/run/pcscd.pid
/var/run/pcscd.pub
/var/run/pcscd.comm
- root_t
/
/initrd
- samba_log_t
/var/log/samba(/.*)?
- samba_secrets_t
/etc/samba/smbpasswd
/etc/samba/passdb.tdb
/etc/samba/MACHINE.SID
/etc/samba/secrets.tdb
- samba_var_t
/var/lib/samba(/.*)?
/var/cache/samba(/.*)?
/var/spool/samba(/.*)?
/var/nmbd/unexpected(/.*)?
- smbd_tmp_t
smbd_var_run_t
/var/run/samba(/.*)?
/var/run/smbd.pid
/var/run/samba/smbd.pid
/var/run/samba/brlock.tdb
/var/run/samba/locking.tdb
/var/run/samba/gencache.tdb
/var/run/samba/sessionid.tdb
/var/run/samba/share_info.tdb
/var/run/samba/connections.tdb
- tmp_t
/tmp
/usr/tmp
/var/tmp
/var/tmp/vi.recover
- user_home_t
/home/[^/]*/.+
- user_tmp_t
/tmp/gconfd-.*
- winbind_log_t
winbind_var_run_t
/var/run/winbindd(/.*)?
/var/lib/samba/winbindd_privileged(/.*)?
/var/cache/samba/winbindd_privileged(/.*)?
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.
Author
This manual page was auto-generated using sepolicy manpage by mgrepl.
See Also
selinux(8), winbind(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8), winbind_helper_selinux(8)