anaconda_selinux(8)
β¨ anaconda_selinux(8) β¨
okay bestie, welcome to the anaconda_selinux(8) page β this is the SELinux manual for the anaconda processes, and yes we're gonna get through it together π
π NAME π
anaconda_selinux β the Security Enhanced Linux policy for the anaconda processes. that's it, that's the whole intro π«Ά
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the anaconda processes via flexible mandatory access control. iconic behaviour, no cap.
The anaconda processes execute with the anaconda_t SELinux type. Wanna check if you've got these processes running? just run the ps command with the -Z qualifier. easy.
For example:
ps -eZ | grep anaconda_t
π¦ ENTRYPOINTS π¦
The anaconda_t SELinux type can be entered via the anaconda_exec_t file type. so that's the doorway, periodt.
The default entrypoint paths for the anaconda_t domain are the following:
so likeβ¦ the list is literally empty in the original. nothing there. no paths listed at all π that's not me skipping it, that's genuinely the whole thing.
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. every process gets a lil identity, main character energy fr.
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 anaconda policy is very flexible, allowing users to set up their anaconda processes in as secure a method as possible.
The following process types are defined for anaconda:
anaconda_t, anaconda_generator_t
Note:semanage permissive -a anaconda_tcan be used to make the process typeanaconda_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so it stops blocking, but it's still gonna talk about you behind your back π
π BOOLEANS π
SELinux policy is customizable based on least access required. the anaconda policy is extremely flexible and has several booleans that let you manipulate the policy and run anaconda with the tightest access possible. tightest access = bestie behaviour.
- if you want to control the ability to
mmapa low area of the address space, as configured by/proc/sys/vm/mmap_min_addr, you must turn on themmap_low_allowedboolean. Disabled by default.
setsebool -P mmap_low_allowed 1
- if you want to disable kernel module loading, you must turn on the
secure_mode_insmodboolean. Disabled by default.
setsebool -P secure_mode_insmod 1
- if you want to allow unconfined executables to make their heap memory executable, you must turn on the
selinuxuser_execheapboolean. Disabled by default. and listen β doing this is a really bad idea. it probably indicates a badly coded executable, but it could indicate an attack. this executable should be reported in bugzilla. i'm not kidding, don't just vibe with it π
setsebool -P selinuxuser_execheap 1
- if you want to allow unconfined executables to make their stack executable, you must turn on the
selinuxuser_execstackboolean. Disabled by default. and this should never, ever be necessary. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. fr fr, never ever.
setsebool -P selinuxuser_execstack 1
π MANAGED FILES π
The SELinux process type anaconda_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. reminder: the process's UID still needs to have DAC permissions, so don't think SELinux is doing all the work π
file_type
- all files on the system
like. all of them. the whole system. sweeping statement but go off π₯
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. every file's gotta have its little label, it's giving name tags at a party.
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 anaconda policy is very flexible, allowing users to set up their anaconda processes in as secure a method as possible.
β STANDARD FILE CONTEXT β
SELinux defines the file context types for anaconda. 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 slay.
semanage fcontext -a -t anaconda_exec_t '/srv/anaconda/content(/.*)?'
restorecon -R -v /srv/myanaconda_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved β¨
The following file types are defined for anaconda:
anaconda_exec_t
- Set files with the
anaconda_exec_ttype, if you want to transition an executable to theanaconda_tdomain.
anaconda_generator_exec_t
- Set files with the
anaconda_generator_exec_ttype, if you want to transition an executable to theanaconda_generator_tdomain.
anaconda_generator_unit_file_t
- Set files with the
anaconda_generator_unit_file_ttype, if you want to treat the files as anaconda generator unit content.
anaconda_unit_file_t
- Set files with the
anaconda_unit_file_ttype, if you want to treat the files as anaconda unit content.
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 fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings. a whole GUI, for the visual learners π
π AUTHOR π
This manual page was auto-generated using sepolicy manpage. a robot wrote it, i just gave it a personality π«Ά
πΈ SEE ALSO πΈ
selinux(8), anaconda(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), anaconda_generator_selinux(8), anaconda_generator_selinux(8)
(and yes, anaconda_generator_selinux(8) is listed twice in the original. i'm not fixing it. i'm not merging it. it stays. twice. that's canon π)
and that's the whole page!! sign-off time: this one's from the anaconda manual, dated 26-10-06, and it's anaconda_selinux(8) all the way down. go forth and label responsibly πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms