calamaris_selinux(8)

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

πŸ’… calamaris_selinux β€” the manual page, but make it make sense

okay so bestie, welcome to calamaris_selinux(8), straight out of the SELinux Policy calamaris section of the manual. this is the whole page, no skips, no "you'll figure it out" energy. let's go 🫢


✨ NAME ✨

calamaris_selinux β€” the Security Enhanced Linux Policy situation for calamaris processes. that's it, that's the name. πŸ’–


🌸 DESCRIPTION 🌸

Security-Enhanced Linux keeps the calamaris processes secure via flexible mandatory access control. yes, mandatory. not "if you feel like it" access control. mandatory. πŸ’…

the calamaris processes run with the calamaris_t SELinux type. want to check if you've got any of those running? run the ps command with the -Z qualifier, like this:

ps -eZ | grep calamaris_t

that's it. that's the vibe check. πŸ¦‹


πŸŽ€ ENTRYPOINTS πŸŽ€

so the calamaris_t SELinux type gets entered via the calamaris_exec_t file type. that's the doorway, periodt.

the default entrypoint paths for the calamaris_t domain are literally:

/etc/cron.daily/calamaris

one path. iconic. πŸ‘‘


πŸ”₯ PROCESS TYPES πŸ”₯

SELinux defines process types (aka domains) for every process running on the system. no cap.

you can peep the context of a process using the -Z option to ps.

policy governs the access confined processes have to files. the SELinux calamaris policy is very flexible, letting users set up their calamaris processes in as secure a method as possible. we love that for us. ✨

the following process types are defined for calamaris:

calamaris_t

Note: semanage permissive -a calamaris_t can be used to make the process type calamaris_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, you're not blocked, but the receipts still exist. 😭

🧚 BOOLEANS 🧚

SELinux policy is customizable based on least access required. the calamaris policy is extremely flexible and has several booleans that let you manipulate the policy and run calamaris with the tightest access possible. love a customizable queen. πŸ’œ


if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. enabled by default.

setsebool -P fips_mode 1

if you want to allow the system to run with NIS, you must turn on the nis_enabled boolean. disabled by default.

setsebool -P nis_enabled 1

πŸ“ MANAGED FILES πŸ“

the SELinux process type calamaris_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. quick reminder though: the processes' UID still need to have DAC permissions. SELinux said "you still need the regular permissions too, bestie." πŸ’€

calamaris_log_t

/var/log/calamaris(/.*)?

calamaris_www_t

/var/www/calamaris(/.*)?

krb5_host_rcache_t

/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0

🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. that's just how it is. 🌸

you can see the context of a file using the -Z option to ls. yes, ls -Z. your new best friend.

policy governs the access confined processes have to these files. the SELinux calamaris policy is very flexible, allowing users to set up their calamaris processes in as secure a method as possible. again. because it's that flexible. ✨


⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for calamaris. 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 so:

semanage fcontext -a -t calamaris_exec_t '/srv/calamaris/content(/.*)?'
restorecon -R -v /srv/mycalamaris_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise. 🧚

the following file types are defined for calamaris:


  • calamaris_exec_t β€” set files with the calamaris_exec_t type if you want to transition an executable to the calamaris_t domain. the glow-up pipeline. πŸ’«
  • calamaris_log_t β€” set files with the calamaris_log_t type if you want to treat the data as calamaris log data, usually stored under the /var/log directory.
  • calamaris_www_t β€” set files with the calamaris_www_t type if you want to treat the files as calamaris www data.

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. so chcon is the temporary tattoo and semanage fcontext + restorecon is the real ink. do not skip the restorecon step, i'm begging. πŸ™ˆ

🫢 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. it's giving "click instead of type." πŸŽ€


πŸ’… AUTHOR πŸ’…

this manual page was auto-generated using sepolicy manpage. not me writing this by hand, the machine did it. πŸ’€


🌟 SEE ALSO 🌟

selinux(8), calamaris(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)

go read those too, iykyk πŸ“šβœ¨


and that's the whole thing, bestie β€” this version of the page was brought to you by calamaris, dated 26-10-06, living in the calamaris_selinux(8) section of the manual. mwah, stay labeled correctly πŸ’–πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from