lsassd_selinux(8)

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

πŸ’… 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_t can be used to make the process type lsassd_t permissive. 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 in fips_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_t type if you want to transition an executable to the lsassd_t domain.

Paths:

/usr/bin/lsassd, /opt/likewise/sbin/lsassd

lsassd_tmp_t

  • Set files with the lsassd_tmp_t type if you want to store lsassd temporary files in the /tmp directories.

lsassd_var_lib_t

  • Set files with the lsassd_var_lib_t type if you want to store the lsassd files under the /var/lib directory.

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_t type if you want to store the lsassd files under the /run or /var/run directory.

lsassd_var_socket_t

  • Set files with the lsassd_var_socket_t type if you want to treat the files as lsassd var 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 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. 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