ricci_modlog_selinux(8)

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

πŸŽ€ ricci_modlog_selinux β€” your girl's guide to the SELinux policy for ricci_modlog πŸŽ€

okay so bestie, this is a page from the SELinux Policy ricci_modlog manual (section 8, ricci_modlog_selinux(8) if you're keeping track), and I'm gonna walk you through it like we're texting at 2am. it's literally all about how SELinux locks down the ricci_modlog processes. let's go πŸ’…


✨ NAME ✨

ricci_modlog_selinux β€” the Security Enhanced Linux Policy for the ricci_modlog processes. that's the whole vibe. πŸ‘‘


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the ricci_modlog processes via flexible mandatory access control. yes, mandatory β€” not suggestions, not "if you feel like it", MANDATORY. SELinux is the strict parent and honestly? iconic. 🫢

The ricci_modlog processes execute with the ricci_modlog_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier.

for example:

ps -eZ | grep ricci_modlog_t

no cap, that's the whole check. run it, see if ricci_modlog_t shows up, done. ✨


πŸ¦‹ ENTRYPOINTS πŸ¦‹

The ricci_modlog_t SELinux type can be entered via the ricci_modlog_exec_t file type.

the default entrypoint paths for the ricci_modlog_t domain are the following:

/usr/libexec/ricci-modlog

that's the one door in, bestie. memorize it. πŸšͺ


πŸ’œ 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 ricci_modlog policy is very flexible, allowing users to setup their ricci_modlog processes in as secure a method as possible.

the following process types are defined for ricci_modlog:

  • ricci_modlog_t
Note: semanage permissive -a ricci_modlog_t can be used to make the process type ricci_modlog_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like… it stops blocking you, but it definitely still talks about you behind your back. πŸ’€

πŸ”₯ BOOLEANS πŸ”₯

SELinux policy is customizable based on least access required. the ricci_modlog policy is extremely flexible and has several booleans that allow you to manipulate the policy and run ricci_modlog with the tightest access possible.

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

that -P is doing the heavy lifting so it actually sticks around, just saying. πŸ’…


🌈 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 ricci_modlog policy is very flexible, allowing users to setup their ricci_modlog processes in as secure a method as possible.

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the ricci_modlog. 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 ricci_modlog_exec_t
'/srv/ricci_modlog/content(/.*)?'
restorecon -R -v /srv/myricci_modlog_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. that's why there's all that (/.*)? chaos in there β€” it's regex, not a typo, don't come for me. πŸ™ˆ

the following file types are defined for ricci_modlog:

  • ricci_modlog_exec_t β€” set files with the ricci_modlog_exec_t type, if you want to transition an executable to the ricci_modlog_t domain.
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 like, chcon is the "just for tonight" of file labels and semanage fcontext is the "moving in together" version. know the difference. πŸŽ€


πŸ‘‘ 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 girlies who like buttons instead of flags, we respect it 🫢)

πŸ’– AUTHOR πŸ’–

This manual page was auto-generated using sepolicy manpage . like, the machine wrote it, not a human. slay for automation honestly.


🧚 SEE ALSO 🧚

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


aaaand that's the page, bestie!! ✨ it's ricci_modlog, dated 26-10-06, living in ricci_modlog_selinux(8) β€” go forth and label your files correctly, ily, mwah πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from