stratisd_selinux(8)

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

πŸ’… 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_t can be used to make the process type stratisd_t permissive. 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_t type if you want to treat the files as stratisd content.

paths:

/stratis(/.*)?, /dev/stratis(/.*)?

stratisd_exec_t

  • set files with the stratisd_exec_t type if you want to transition an executable to the stratisd_t domain.

stratisd_var_run_t

  • set files with the stratisd_var_run_t type if you want to store the stratisd files under the /run or /var/run directory.

paths:

/run/stratisd.*, /run/stratisd(/.*)?
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. tl;dr β€” chcon is a cute little temporary moment, semanage fcontext + restorecon is the forever commitment πŸ’–

πŸ‘‘ 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. 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