mirrormanager_selinux(8)
β¨ 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_tcan be used to make the process typemirrormanager_tpermissive. 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 themirrormanager_exec_ttype, if you want to transition an executable to themirrormanager_tdomain.mirrormanager_log_tβ Set files with themirrormanager_log_ttype, if you want to treat the data as mirrormanager log data, usually stored under the/var/logdirectory.mirrormanager_var_lib_tβ Set files with themirrormanager_var_lib_ttype, if you want to store the mirrormanager files under the/var/libdirectory.mirrormanager_var_run_tβ Set files with themirrormanager_var_run_ttype, if you want to store the mirrormanager files under the/runor/var/rundirectory.
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. 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
- centos-stream 9: selinux-policy-doc 38.1.87-1.el9 Β· GPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms