mencoder_selinux(8)
π mencoder_selinux β the manual, but make it make sense β¨
Okay bestie, so this is the mencoder_selinux(8) manual page, and it's literally all about keeping the mencoder processes safe and sound under SELinux. No cap, it's giving security realness.
πΈ NAME πΈ
mencoder_selinux β Security Enhanced Linux Policy for the mencoder processes
π DESCRIPTION π
Security-Enhanced Linux secures the mencoder processes via flexible mandatory access control. It's literally the bodyguard for your media encoder, periodt.
The mencoder processes execute with the mencoder_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. Like, just peek at them, iykyk.
For example:
ps -eZ | grep mencoder_t
π¦ ENTRYPOINTS π¦
The mencoder_t SELinux type can be entered via the mencoder_exec_t file type. That's the VIP pass, bestie.
The default entrypoint paths for the mencoder_t domain are the following:
/usr/bin/mencoder
β¨ PROCESS TYPES β¨
SELinux defines process types (domains) for each process running on the system. It's giving organization.
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux mencoder policy is very flexible, allowing users to setup their mencoder processes in as secure a method as possible. Highkey iconic.
The following process types are defined for mencoder:
mencoder_t
Note:semanage permissive -a mencoder_tcan be used to make the process typemencoder_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, it just complains politely instead of blocking you. π
π₯ BOOLEANS π₯
SELinux policy is customizable based on least access required. The mencoder policy is extremely flexible and has several booleans that allow you to manipulate the policy and run mencoder with the tightest access possible. We love a customizable queen.
deny_execmemβ If you want to deny user domains applications to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla, you must turn on thedeny_execmemboolean. Disabled by default.
setsebool -P deny_execmem 1
fips_modeβ If you want to allow all domains to execute infips_mode, you must turn on thefips_modeboolean. Enabled by default.
setsebool -P fips_mode 1
mplayer_execstackβ If you want to determine whethermplayercan make its stack executable, you must turn on themplayer_execstackboolean. Disabled by default.
setsebool -P mplayer_execstack 1
selinuxuser_execmodβ If you want to allow all unconfined executables to use libraries requiring text relocation that are not labeledtextrel_shlib_t, you must turn on theselinuxuser_execmodboolean. Disabled by default.
setsebool -P selinuxuser_execmod 1
use_nfs_home_dirsβ If you want to support NFS home directories, you must turn on theuse_nfs_home_dirsboolean. Enabled by default.
setsebool -P use_nfs_home_dirs 1
use_samba_home_dirsβ If you want to support SAMBA home directories, you must turn on theuse_samba_home_dirsboolean. Disabled by default.
setsebool -P use_samba_home_dirs 1
π MANAGED FILES π
The SELinux process type mencoder_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 skipping that part, bestie.
cifs_tmplayer_home_t
/home/[^/]+/.mplayer(/.*)?
nfs_tuser_home_t
/home/[^/]+/.+
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. It's literally the vibe check for your files.
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 mencoder policy is very flexible, allowing users to setup their mencoder processes in as secure a method as possible. Obsessed with the flexibility, honestly.
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the mencoder. 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. Like, relabeling is a whole process, but we move.
semanage fcontext -a -t mencoder_exec_t '/srv/mencoder/content(/.*)?'
restorecon -R -v /srv/mymencoder_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlies rise up. β¨
The following file types are defined for mencoder:
mencoder_exec_tβ Set files with themencoder_exec_ttype if you want to transition an executable to themencoder_tdomain. It's the entry point, the main character energy.
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. Sochconis like a temporary tattoo andsemanage fcontextis the real ink. π
π§ 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. For when you want to click instead of type, no judgment.
π AUTHOR π
This manual page was auto-generated using sepolicy manpage. The robot did it, not me. π€
β SEE ALSO β
selinux(8), mencoder(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
Alright bestie, that's the whole manual. This page was brought to you by the mencoder manual, version 26-10-06, and it's literally iconic. Go forth and configure your SELinux policy with confidence. Slay. ππ¦β¨
π¦ 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