plymouth_selinux(8)

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

πŸ’– plymouth_selinux(8) β€” SELinux Policy plymouth πŸ’–

Omg bestie, welcome to the plymouth_selinux(8) manual β€” aka the designated driver for how SELinux handles plymouth. Buckle up, it's giving security but make it cute. πŸŽ€


🌸 NAME 🌸

plymouth_selinux β€” Security Enhanced Linux Policy for the plymouth processes. Periodt. πŸ’…

✨ DESCRIPTION ✨

Security-Enhanced Linux secures the plymouth processes via flexible mandatory access control. No cap, it's the whole vibe. πŸ›‘οΈ

The plymouth processes execute with the plymouth_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 plymouth_t

πŸ¦‹ ENTRYPOINTS πŸ¦‹

The plymouth_t SELinux type can be entered via the plymouth_exec_t file type.

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

  • /usr/bin/plymouth

πŸ’œ PROCESS TYPES πŸ’œ

SELinux defines process types (domains) for each process running on the system. It's literally how it keeps track of who's who. πŸ‘‘

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

Policy governs the access confined processes have to files. SELinux plymouth policy is very flexible, allowing users to set up their plymouth processes in as secure a method as possible. Slay.

The following process types are defined for plymouth:

  • plymouth_t
  • plymouthd_t
Note: semanage permissive -a plymouth_t can be used to make the process type plymouth_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, it's just a softer no. 😭

πŸ“ BOOLEANS πŸ“

SELinux policy is customizable based on least access required. plymouth policy is extremely flexible and has several booleans that allow you to manipulate the policy and run plymouth with the tightest access possible. It's giving controlled chaos, but make it secure. 🧚

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

πŸŽ€ FILE CONTEXTS πŸŽ€

SELinux requires files to have an extended attribute to define the file type. Yes, every file needs its little name tag. 🏷️

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 plymouth policy is very flexible, allowing users to set up their plymouth processes in as secure a method as possible. Iconic behavior, honestly.

πŸŒ€ EQUIVALENCE DIRECTORIES πŸŒ€

plymouth policy stores data with multiple different file context types under the /var/spool/plymouth 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/plymouth /srv/plymouth
restorecon -R -v /srv/plymouth

🌈 STANDARD FILE CONTEXT 🌈

SELinux defines the file context types for the plymouth, so 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. Bestie, it's a two-step glow-up. ✨

semanage fcontext -a -t plymouth_exec_t '/srv/plymouth/content(/.*)?'
restorecon -R -v /srv/myplymouth_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlies stay winning. πŸ’…

The following file types are defined for plymouth:

  • plymouth_exec_t β€” Set files with the plymouth_exec_t type if you want to transition an executable to the plymouth_t domain.
  • plymouthd_exec_t β€” Set files with the plymouthd_exec_t type if you want to transition an executable to the plymouthd_t domain.
  • plymouthd_spool_t β€” Set files with the plymouthd_spool_t type if you want to store the plymouthd files under the /var/spool directory.
  • plymouthd_var_lib_t β€” Set files with the plymouthd_var_lib_t type if you want to store the plymouthd files under the /var/lib directory.
  • plymouthd_var_log_t β€” Set files with the plymouthd_var_log_t type if you want to treat the data as plymouthd var log data, usually stored under the /var/log directory.
    • Paths: /var/log/boot.log.*, /var/log/plymouth.*.log.*, /var/spool/plymouth/boot.log.*
  • plymouthd_var_run_t β€” Set files with the plymouthd_var_run_t type if you want to store the plymouthd files under the /run or /var/run directory.
Important: 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. No shortcuts, 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.

πŸ‘‘ AUTHOR πŸ‘‘

This manual page was auto-generated using sepolicy manpage. The robots did this one, not me. πŸ€–πŸ’–

πŸ”₯ SEE ALSO πŸ”₯


xoxo, this glow-up is from the plymouth page, dated 26-10-06, filed under plymouth_selinux(8) β€” stay secure and stay iconic, bestie πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from