stratisd_selinux(8)
π stratisd_selinux β the manual page, but make it make sense
okay so bestie, you're looking at stratisd_selinux(8) β that's the SELinux policy manual page for the stratisd processes. yes, the whole thing. no cap, it's actually lowkey important. let's get into it π«Ά
β¨ NAME β¨
stratisd_selinux β Security Enhanced Linux Policy for the stratisd processes. that's it. that's the vibe. π
πΈ DESCRIPTION πΈ
so Security-Enhanced Linux secures the stratisd processes via flexible mandatory access control. that's literally the whole point. mandatory access control. it does not care about your feelings, it cares about your policy. π
the stratisd processes execute with the stratisd_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 stratisd_t
run it. it slays. it tells you the truth. π₯
π¦ ENTRYPOINTS π¦
the stratisd_t SELinux type can be entered via the stratisd_exec_t file type.
the default entrypoint paths for the stratisd_t domain are the following:
/usr/libexec/stratisd
that's the one path. the main character path. π
π 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. the SELinux stratisd policy is very flexible, allowing users to setup their stratisd processes in as secure a method as possible. flexible and secure, we love a multitasker π
the following process types are defined for stratisd:
stratisd_t
Note:semanage permissive -a stratisd_tcan be used to make the process typestratisd_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's chill about it but it's still watching. π
π BOOLEANS π
SELinux policy is customizable based on least access required. stratisd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run stratisd with the tightest access possible. tightest access possible. we love a locked-down queen. πβ¨
daemons_dontaudit_schedulingβ if you want to dontaudit all daemons scheduling requests (setsched,sys_nice), you must turn on this boolean. enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
deny_execmemβ if you want to deny user domains applications to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla, you must turn on this boolean. disabled by default.
setsebool -P deny_execmem 1
mmap_low_allowedβ if you want to control the ability to mmap a low area of the address space, as configured by/proc/sys/vm/mmap_min_addr, you must turn on this boolean. disabled by default.
setsebool -P mmap_low_allowed 1
secure_mode_insmodβ if you want to disable kernel module loading, you must turn on this boolean. disabled by default.
setsebool -P secure_mode_insmod 1
selinuxuser_execheapβ if you want to allow unconfined executables to make their heap memory executable. doing this is a really bad idea. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. you must turn on this boolean. disabled by default. π
setsebool -P selinuxuser_execheap 1
selinuxuser_execstackβ if you want to allow unconfined executables to make their stack executable. this should never, ever be necessary. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. you must turn on this boolean. disabled by default. π
setsebool -P selinuxuser_execstack 1
π§ MANAGED FILES π§
the SELinux process type stratisd_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, okay? π«Ά
file_type
- all files on the system
like. all of them. iconic scope, honestly. β
π 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. the SELinux stratisd policy is very flexible, allowing users to setup their stratisd processes in as secure a method as possible.
π STANDARD FILE CONTEXT
SELinux defines the file context types for the stratisd β 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. two-step process, both steps mandatory, no skipping π
semanage fcontext -a -t stratisd_exec_t '/srv/stratisd/content(/.*)?'
restorecon -R -v /srv/mystratisd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πΈ
the following file types are defined for stratisd:
stratisd_data_t
- set files with the
stratisd_data_ttype if you want to treat the files asstratisdcontent.
paths:
/stratis(/.*)?, /dev/stratis(/.*)?
stratisd_exec_t
- set files with the
stratisd_exec_ttype if you want to transition an executable to thestratisd_tdomain.
stratisd_var_run_t
- set files with the
stratisd_var_run_ttype if you want to store thestratisdfiles under the/runor/var/rundirectory.
paths:
/run/stratisd.*, /run/stratisd(/.*)?
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. tl;dr βchconis a cute little temporary moment,semanage fcontext+restoreconis the forever commitment π
π 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. yes, a GUI. for when you want to click instead of type. we don't judge. π±οΈβ¨
π AUTHOR π
this manual page was auto-generated using sepolicy manpage. a robot wrote this. respect the robot. π«‘
π₯ SEE ALSO π₯
selinux(8), stratisd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
go read them. iykyk. ππ
and that's the whole page, bestie β auto-generated as part of the stratisd manual set, dated 26-10-06, version stratisd. screenshot it, bookmark it, put it in the group chat. 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