mirrormanager_selinux(8)

πŸ“¦ version 38.1.87, in centos-stream 9

✨ mirrormanager_selinux(8) ✨

okay so bestie, this is the selinux policy page for mirrormanager β€” yes, the whole mirrormanager_selinux(8) manual, and we're gonna get into it πŸ’…


🌸 NAME 🌸

mirrormanager_selinux β€” the Security Enhanced Linux Policy for the mirrormanager processes, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the mirrormanager processes via flexible mandatory access control. it's giving "we protect you with vibes and rules" 🫢

The mirrormanager processes execute with the mirrormanager_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 mirrormanager_t

fr fr, that's the whole vibe check right there πŸ”₯


πŸŽ€ ENTRYPOINTS πŸŽ€

The mirrormanager_t SELinux type can be entered via the mirrormanager_exec_t file type.

The default entrypoint paths for the mirrormanager_t domain are the following:

/usr/share/mirrormanager/server/mirrormanager(/.*)?

like, that's the door πŸšͺ✨


πŸ’œ PROCESS TYPES πŸ’œ

SELinux defines process types (domains) for each process running on the system. lowkey obsessed with how organized this is.

You can see the context of a process using the -Z option to ps.

Policy governs the access confined processes have to files. SELinux mirrormanager policy is very flexible allowing users to setup their mirrormanager processes in as secure a method as possible. it's giving customizable security πŸ›‘οΈ

The following process types are defined for mirrormanager:

  • mirrormanager_t
Note: semanage permissive -a mirrormanager_t can be used to make the process type mirrormanager_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's not a free pass, just a soft launch 😭

🌈 BOOLEANS 🌈

SELinux policy is customizable based on least access required. mirrormanager policy is extremely flexible and has several booleans that allow you to manipulate the policy and run mirrormanager with the tightest access possible. it's giving "your rules, your vibes" ✨

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

slay, that's the default already πŸ’…


🧚 MANAGED FILES 🧚

The SELinux process type mirrormanager_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.

  • mirrormanager_log_t
/var/log/mirrormanager(/.*)?
  • mirrormanager_var_lib_t
/var/lib/mirrormanager(/.*)?
  • mirrormanager_var_run_t
/var/run/mirrormanager(/.*)?

like, these are the files it's allowed to touch, no cap 🫢


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

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the mirrormanager, 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 mirrormanager_var_run_t '/srv/mymirrormanager_content(/.*)?'
restorecon -R -v /srv/mymirrormanager_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πŸ™ˆ

The following file types are defined for mirrormanager:

  • mirrormanager_exec_t β€” Set files with the mirrormanager_exec_t type, if you want to transition an executable to the mirrormanager_t domain.
  • mirrormanager_log_t β€” Set files with the mirrormanager_log_t type, if you want to treat the data as mirrormanager log data, usually stored under the /var/log directory.
  • mirrormanager_var_lib_t β€” Set files with the mirrormanager_var_lib_t type, if you want to store the mirrormanager files under the /var/lib directory.
  • mirrormanager_var_run_t β€” Set files with the mirrormanager_var_run_t type, if you want to store the mirrormanager files under the /run or /var/run directory.
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. temporary vs permanent, know the difference bestie πŸ’€

πŸ‘‘ 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. GUI girlies, this one's for you πŸŽ€


🌟 AUTHOR 🌟

This manual page was auto-generated using sepolicy manpage. not me being auto-generated and still serving πŸ’…


πŸ¦„ SEE ALSO πŸ¦„

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


and that's the whole page, bestie! this was mirrormanager from 26-10-23, manual mirrormanager_selinux(8) β€” catch you on the flip side, stay secure and stay iconic πŸ’–βœ¨

πŸ“¦ where this page comes from