lsassd_selinux(8)
π lsassd_selinux β the whole manual, bestie
okay so this is lsassd_selinux(8), the SELinux policy page for the lsassd processes. yes it's a whole manpage, yes i read it so you don't have to, and honestly? it ate. let's go π«Ά
β¨ NAME β¨
lsassd_selinux β the Security Enhanced Linux Policy for the lsassd processes. that's the whole name section, she's brief and she knows it π
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the lsassd processes via flexible mandatory access control. mandatory! access! control! it's giving "you WILL stay in your lane" energy.
The lsassd processes execute with the lsassd_t SELinux type. wanna check if you've got these processes running? run the ps command with the -Z qualifier, like this:
ps -eZ | grep lsassd_t
no cap, that's it. that's the vibe check π
π¦ ENTRYPOINTS π¦
The lsassd_t SELinux type can be entered via the lsassd_exec_t file type. that's the doorway, the portal, the main character entrance β¨
The default entrypoint paths for the lsassd_t domain are literally the following:
/usr/bin/lsassd, /opt/likewise/sbin/lsassd
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. every process gets a little domain of its own, like a tiny fiefdom π°
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux lsassd policy is very flexible, allowing users to set up their lsassd processes in as secure a method as possible. flexible AND secure, we love a multitasker π
The following process types are defined for lsassd:
lsassd_t
Note:semanage permissive -a lsassd_tcan be used to make the process typelsassd_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so likeβ¦ she's not blocking you anymore but she's still writing it all down in her notes app ππ
π BOOLEANS π
SELinux policy is customizable based on least access required. lsassd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run lsassd with the tightest access possible. tightest access possible, periodt.
daemons_dontaudit_schedulingβ if you want to dontaudit all daemons scheduling requests (setsched,sys_nice), you must turn on this boolean. Enabled by default. turn it on with:
setsebool -P daemons_dontaudit_scheduling 1
fips_modeβ if you want to allow all domains to execute infips_mode, you must turn on this boolean. Enabled by default. like so:
setsebool -P fips_mode 1
kerberos_enabledβ if you want to allow confined applications to run with kerberos, you must turn on this boolean. Enabled by default. thusly:
setsebool -P kerberos_enabled 1
three booleans, all on by default, all slaying in their own lane π β¨
π MANAGED FILES π
The SELinux process type lsassd_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. Note: the process's UID still needs to have DAC permissions β SELinux isn't out here overriding your regular permissions, bestie, it's a whole separate layer π₯
cluster_conf_t
/etc/cluster(/.*)?
cluster_var_lib_t
/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?
cluster_var_run_t
/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk
krb5_keytab_t
/var/kerberos/krb5(/.*)?
/etc/krb5.keytab
/etc/krb5kdc/kadm5.keytab
/var/kerberos/krb5kdc/kadm5.keytab
likewise_etc_t
/etc/likewise-open(/.*)?
lsassd_tmp_t
this one's out here with no default paths listed. mysterious. iconic. we respect her privacy π
lsassd_var_lib_t
/var/lib/likewise/krb5cc.*
/var/lib/likewise-open/krb5cc.*
/var/lib/likewise/krb5ccr_lsass..*
/var/lib/likewise-open/krb5ccr_lsass..*
/var/lib/likewise/db/lsass-adcache.filedb..*
/var/lib/likewise-open/db/lsass-adcache.filedb..*
/var/lib/likewise/db/sam.db
/var/lib/likewise/lsasd.err
/var/lib/likewise/krb5ccr_lsass
/var/lib/likewise-open/db/sam.db
/var/lib/likewise-open/lsasd.err
/var/lib/likewise-open/krb5ccr_lsass
/var/lib/likewise/db/lsass-adcache.db
/var/lib/likewise/db/lsass-adstate.filedb
/var/lib/likewise-open/db/lsass-adcache.db
/var/lib/likewise-open/db/lsass-adstate.filedb
lsassd_var_run_t
/run/lsassd.pid
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
security_t
/selinux
user_home_t
/home/[^/]+/.+
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type. every file's gotta wear its little name tag, no exceptions π·οΈ
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 lsassd policy is very flexible, allowing users to set up their lsassd processes in as secure a method as possible. (yes, it says that twice. consistency queen π)
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the lsassd. 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 this:
semanage fcontext -a -t lsassd_exec_t '/srv/lsassd/content(/.*)?'
restorecon -R -v /srv/mylsassd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise π
The following file types are defined for lsassd:
lsassd_exec_t
- Set files with the
lsassd_exec_ttype if you want to transition an executable to thelsassd_tdomain.
Paths:
/usr/bin/lsassd, /opt/likewise/sbin/lsassd
lsassd_tmp_t
- Set files with the
lsassd_tmp_ttype if you want to storelsassdtemporary files in the/tmpdirectories.
lsassd_var_lib_t
- Set files with the
lsassd_var_lib_ttype if you want to store thelsassdfiles under the/var/libdirectory.
Paths:
/var/lib/likewise/krb5cc.*, /var/lib/likewise-open/krb5cc.*,
/var/lib/likewise/krb5ccr_lsass..*, /var/lib/likewise-open/krb5ccr_lsass..*,
/var/lib/likewise/db/lsass-adcache.filedb..*, /var/lib/likewise-open/db/lsass-adcache.filedb..*,
/var/lib/likewise/db/sam.db, /var/lib/likewise/lsasd.err, /var/lib/likewise/krb5ccr_lsass,
/var/lib/likewise-open/db/sam.db, /var/lib/likewise-open/lsasd.err, /var/lib/likewise-open/krb5ccr_lsass,
/var/lib/likewise/db/lsass-adcache.db, /var/lib/likewise/db/lsass-adstate.filedb,
/var/lib/likewise-open/db/lsass-adcache.db, /var/lib/likewise-open/db/lsass-adstate.filedb
lsassd_var_run_t
- Set files with the
lsassd_var_run_ttype if you want to store thelsassdfiles under the/runor/var/rundirectory.
lsassd_var_socket_t
- Set files with the
lsassd_var_socket_ttype if you want to treat the files aslsassdvar socket data.
Paths:
/var/lib/likewise/.ntlmd, /var/lib/likewise/.lsassd,
/var/lib/likewise/rpc/lsass, /var/lib/likewise-open/.ntlmd,
/var/lib/likewise-open/.lsassd, /var/lib/likewise-open/rpc/lsass
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. temporary vs permanent, know the difference bestie, this is the plot twist π«Ά
π 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 clicky girlies! π±οΈβ¨
πΈ AUTHOR πΈ
This manual page was auto-generated using sepolicy manpage. a robot wrote this and honestly she did a great job π
π¦ SEE ALSO π¦
selinux(8), lsassd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
go read those next, bestie, i believe in you π
k that's the whole thing!! this page is from lsassd on 26-10-06, and it's page lsassd_selinux(8) of the manual β go forth and label your files correctly, mwah π
π¦ 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