prelude_selinux(8)
π prelude_selinux(8) β the whole SELinux tea for prelude
okay so bestie, welcome to prelude_selinux(8), aka the SELinux policy manual for the prelude processes. this is from the SELinux Policy prelude family of pages and it's genuinely a lot, so grab a snack π
β¨ NAME β¨
prelude_selinux β the Security Enhanced Linux Policy for the prelude processes π
π¦ DESCRIPTION π¦
so, Security-Enhanced Linux secures the prelude processes via flexible mandatory access control. that's the whole vibe.
the prelude processes execute with the prelude_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 prelude_t
that's it, that's the vibe check π
π ENTRYPOINTS π
the prelude_t SELinux type can be entered via the prelude_exec_t file type.
the default entrypoint paths for the prelude_t domain are literally:
/usr/bin/prelude-manager
πΈ 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. SELinux prelude policy is very flexible, allowing users to setup their prelude processes in as secure a method as possible.
the following process types are defined for prelude:
prelude_t, prelude_audisp_t, prelude_correlator_t, prelude_lml_t
π Note:semanage permissive -a prelude_tcan be used to make the process typeprelude_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. like, it stops blocking you but it's still gonna gossip about you in the logs, iykyk.
π BOOLEANS π
SELinux policy is customizable based on least access required. prelude policy is extremely flexible and has several booleans that allow you to manipulate the policy and run prelude with the tightest access possible. obsessed with the flexibility ngl.
- if you want to dontaudit all daemons scheduling requests (
setsched,sys_nice), you must turn on thedaemons_dontaudit_schedulingboolean. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
- if you want to allow all domains to execute in
fips_mode, you must turn on thefips_modeboolean. Enabled by default.
setsebool -P fips_mode 1
- if you want to allow system to run with NIS, you must turn on the
nis_enabledboolean. Disabled by default.
setsebool -P nis_enabled 1
π₯ PORT TYPES π₯
SELinux defines port types to represent TCP and UDP ports.
you can see the types associated with a port by using the following command:
semanage port -l
policy governs the access confined processes have to these ports. SELinux prelude policy is very flexible, allowing users to setup their prelude processes in as secure a method as possible.
the following port types are defined for prelude:
prelude_port_t
Default Defined Ports:
tcp 4690
udp 4690
π MANAGED FILES π
the SELinux process type prelude_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. no cap, both matter π
cluster_conf_t
/etc/cluster(/.*)?
cluster_var_lib_t
/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?
cluster_var_run_t
/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk
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
prelude_spool_t
/var/spool/prelude(/.*)?
/var/spool/prelude-manager(/.*)?
prelude_var_lib_t
/var/lib/prelude-lml(/.*)?
prelude_var_run_t
/run/prelude-manager(/.*)?
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
π§ 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 prelude policy is very flexible, allowing users to setup their prelude processes in as secure a method as possible.
β EQUIVALENCE DIRECTORIES β
prelude policy stores data with multiple different file context types under the /var/spool/prelude directory. if you would like to store the data in a different directory you can use the semanage command to create an equivalence mapping. if you wanted to store this data under the /srv directory you would execute the following command:
semanage fcontext -a -e /var/spool/prelude /srv/prelude
restorecon -R -v /srv/prelude
π« STANDARD FILE CONTEXT π«
SELinux defines the file context types for the prelude. 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 prelude_exec_t '/srv/prelude/content(/.*)?'
restorecon -R -v /srv/myprelude_content
π«Ά Note: SELinux often uses regular expressions to specify labels that match multiple files. so like, regex is doing the heavy lifting here, main character energy fr.
the following file types are defined for prelude:
prelude_audisp_exec_tβ set files with theprelude_audisp_exec_ttype, if you want to transition an executable to theprelude_audisp_tdomain.prelude_audisp_var_run_tβ set files with theprelude_audisp_var_run_ttype, if you want to store the prelude audisp files under the/runor/var/rundirectory.prelude_correlator_config_tβ set files with theprelude_correlator_config_ttype, if you want to treat the files as prelude correlator configuration data, usually stored under the/etcdirectory.prelude_correlator_exec_tβ set files with theprelude_correlator_exec_ttype, if you want to transition an executable to theprelude_correlator_tdomain.prelude_exec_tβ set files with theprelude_exec_ttype, if you want to transition an executable to theprelude_tdomain.prelude_initrc_exec_tβ set files with theprelude_initrc_exec_ttype, if you want to transition an executable to theprelude_initrc_tdomain.
Paths:
/etc/rc.d/init.d/prelude-lml, /etc/rc.d/init.d/prelude-manager,
/etc/rc.d/init.d/prelude-correlator
prelude_lml_exec_tβ set files with theprelude_lml_exec_ttype, if you want to transition an executable to theprelude_lml_tdomain.prelude_lml_tmp_tβ set files with theprelude_lml_tmp_ttype, if you want to store prelude lml temporary files in the/tmpdirectories.prelude_lml_var_run_tβ set files with theprelude_lml_var_run_ttype, if you want to store the prelude lml files under the/runor/var/rundirectory.prelude_log_tβ set files with theprelude_log_ttype, if you want to treat the data as prelude log data, usually stored under the/var/logdirectory.prelude_spool_tβ set files with theprelude_spool_ttype, if you want to store the prelude files under the/var/spooldirectory.
Paths:
/var/spool/prelude(/.*)?, /var/spool/prelude-manager(/.*)?
prelude_var_lib_tβ set files with theprelude_var_lib_ttype, if you want to store the prelude files under the/var/libdirectory.prelude_var_run_tβ set files with theprelude_var_run_ttype, if you want to store the prelude 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. don't skip that last step bestie, it ate too many people π
π 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 portcan also be used to manipulate the port definitions.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings.
π AUTHOR π
this manual page was auto-generated using sepolicy manpage. iconic of it, honestly.
π SEE ALSO π
selinux(8), prelude(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), prelude_audisp_selinux(8), prelude_audisp_selinux(8), prelude_correlator_selinux(8), prelude_correlator_selinux(8), prelude_lml_selinux(8), prelude_lml_selinux(8)
and that's the whole page, bestie π
this came to you from prelude version 26-10-06, dated 26-10-06 β go forth and label responsibly, mwah π«Άβ¨
π¦ 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