kanidm_unixd_selinux(8)
π kanidm_unixd_selinux(8) β SELinux Policy for kanidm_unixd β¨
okay so bestie, you've stumbled into the kanidm_unixd_selinux(8) man page and honestly? you're about to learn how SELinux keeps the kanidm_unixd processes on a leash π«Ά this is the manual page for the SELinux Policy that wraps around kanidm_unixd, and yes it's giving very much "security guard at the club" energy π
πΈ NAME πΈ
kanidm_unixd_selinux β the Security Enhanced Linux Policy for the kanidm_unixd processes π
β¨ DESCRIPTION β¨
Security-Enhanced Linux secures the kanidm_unixd processes via flexible mandatory access control. it's not vibes-based security, it's policy-based security, and honestly the flex is real π₯
The kanidm_unixd processes execute with the kanidm_unixd_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 kanidm_unixd_t
run that and it's like a vibe check for your running processes, except the vibe is a security context π
π¦ ENTRYPOINTS π¦
The kanidm_unixd_t SELinux type can be entered via the kanidm_unixd_exec_t file type.
The default entrypoint paths for the kanidm_unixd_t domain are the following:
/usr/bin/kanidm_unixd
that's the one (1) door into this domain, no cap πͺ
π 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 kanidm_unixd policy is very flexible allowing users to setup their kanidm_unixd processes in as secure a method as possible. flexible and secure, we love a multitasker π
The following process types are defined for kanidm_unixd:
kanidm_unixd_tkanidm_unixd_tasks_t
Note:semanage permissive -a kanidm_unixd_tcan be used to make the process typekanidm_unixd_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it won't block you, but it will be taking notes ππ
π BOOLEANS π
SELinux policy is customizable based on least access required. kanidm_unixd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run kanidm_unixd with the tightest access possible. tightest access possible is the whole aesthetic, periodt π
- If you want to dontaudit all daemons scheduling requests (
setsched,sys_nice), you must turn on thedaemons_dontaudit_schedulingboolean. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
- If you want to allow all domains to execute in
fips_mode, you must turn on thefips_modeboolean. Enabled by default.
setsebool -P fips_mode 1
- If you want to allow confined applications to use
nscdshared memory, you must turn on thenscd_use_shmboolean. Enabled by default.
setsebool -P nscd_use_shm 1
three booleans, all on by default, all glowing β¨ flip them with setsebool -P and you're literally the main character of your own policy π
πΈ MANAGED FILES πΈ
The SELinux process type kanidm_unixd_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 β SELinux is not out here doing DAC's job for it, bestie, they're different layers π§
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
kanidm_unixd_var_cache_t
/var/cache/kanidm-unixd(/.*)?
/var/cache/private/kanidm-unixd(/.*)?
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
look at all those cluster paths living their best life in this policy π root_t really said "I contain multitudes" π
π¦ 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 kanidm_unixd policy is very flexible allowing users to setup their kanidm_unixd processes in as secure a method as possible. same energy as before, we're just talking about files now π
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the kanidm_unixd, if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.
semanage fcontext -a -t kanidm_unixd_var_run_t
'/srv/kanidm_unixd/content(/.*)?'
restorecon -R -v /srv/mykanidm_unixd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved π§ββοΈ
The following file types are defined for kanidm_unixd:
kanidm_unixd_exec_tβ Set files with thekanidm_unixd_exec_ttype, if you want to transition an executable to thekanidm_unixd_tdomain.kanidm_unixd_tasks_exec_tβ Set files with thekanidm_unixd_tasks_exec_ttype, if you want to transition an executable to thekanidm_unixd_tasks_tdomain.kanidm_unixd_var_cache_tβ Set files with thekanidm_unixd_var_cache_ttype, if you want to store the files under the/var/cachedirectory.
Paths:
/var/cache/kanidm-unixd(/.*)?, /var/cache/private/kanidm-unixd(/.*)?
kanidm_unixd_var_run_tβ Set files with thekanidm_unixd_var_run_ttype, if you want to store the kanidm unixd files under the/runor/var/rundirectory.
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 π
π COMMANDS π
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.
all the semanage subcommands, slaying in a row π plus one (1) GUI tool for when you want to point and click instead of type π±οΈβ¨
π AUTHOR π
This manual page was auto-generated using sepolicy manpage. a bot wrote this and honestly? it ate π€π
π SEE ALSO π
selinux(8), kanidm_unixd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), kanidm_unixd_tasks_selinux(8)
and that's the whole page bestie, you're now officially fluent in kanidm_unixd SELinux π mwah π«Ά
that was kanidm_unixd_selinux(8), from the kanidm_unixd manual, dated 26-10-06 β go forth and label responsibly β¨
π¦ 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