evtchnd_selinux(8)

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

πŸ’– evtchnd_selinux β€” the glow-up edition πŸ’–

Okay so bestie, listen. This is the SELinux policy manual for the evtchnd processes β€” yes, that's the manual name right there in the title, we love a self-referential moment. Let's get into it. ✨


🌸 NAME 🌸

evtchnd_selinux β€” literally the Security Enhanced Linux Policy for the evtchnd processes. That's it. That's the whole vibe. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the evtchnd processes via flexible mandatory access control. No cap, it's giving "we take security seriously but make it fashion." πŸ”₯

The evtchnd processes execute with the evtchnd_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. Like, go look, bestie:

ps -eZ | grep evtchnd_t

That's the whole assignment. Run it. Slay. ✨


πŸŽ€ ENTRYPOINTS πŸŽ€

The evtchnd_t SELinux type can be entered via the evtchnd_exec_t file type. That's the doorway, the main entrance, the red carpet moment. πŸšͺ✨

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

/usr/bin/evtchnd

Periodt. That's the only path. Simple. Iconic. No notes. πŸ’œ


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. Yes, every little process gets its own category. It's giving organized chaos. πŸ’…

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

Policy governs the access confined processes have to files. SELinux evtchnd policy is very flexible β€” it's literally letting users set up their evtchnd processes in as secure a method as possible. Tight, locked down, but make it customizable. πŸŽ€

The following process types are defined for evtchnd:

evtchnd_t

Note: semanage permissive -a evtchnd_t can be used to make the process type evtchnd_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, bestie β€” the receipts still show up. πŸ’€

⭐ BOOLEANS ⭐

SELinux policy is customizable based on least access required. The evtchnd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run evtchnd with the tightest access possible. Lowkey obsessed with how configurable this is. 🫢

If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. 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 the fips_mode boolean. Enabled by default. πŸ’…

setsebool -P fips_mode 1

Two booleans, both enabled by default. We love a low-maintenance queen. πŸ‘‘


🌈 MANAGED FILES 🌈

The SELinux process type evtchnd_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. Like, SELinux doesn't override your whole existence, bestie. 🫢

πŸ’– 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

πŸ’– evtchnd_var_log_t

/var/log/evtchnd.log.*

πŸ’– evtchnd_var_run_t

/run/evtchnd
/run/evtchnd.pid

πŸ’– root_t

/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

That's the whole list. Don't skip any of it, bestie β€” every path matters. πŸ’œ


🧚 FILE CONTEXTS 🧚

SELinux requires files to have an extended attribute to define the file type. It's giving "everything needs a label, no exceptions." 🏷️

You can see the context of a file using the -Z option to ls. Go off, queen.

Policy governs the access confined processes have to these files. SELinux evtchnd policy is very flexible β€” allowing users to set up their evtchnd processes in as secure a method as possible. Same energy as before, but now for files. ✨

🌸 STANDARD FILE CONTEXT 🌸

SELinux defines the file context types for the evtchnd. 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 a two-step makeover. πŸ’…

semanage fcontext -a -t evtchnd_exec_t '/srv/evtchnd/content(/.*)?'
restorecon -R -v /srv/myevtchnd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex is literally that girl. πŸ’β€β™€οΈ

The following file types are defined for evtchnd:

  • evtchnd_exec_t β€” Set files with the evtchnd_exec_t type if you want to transition an executable to the evtchnd_t domain. It's the gateway drug to the domain. πŸšͺ
  • evtchnd_var_log_t β€” Set files with the evtchnd_var_log_t type if you want to treat the data as evtchnd var log data, usually stored under the /var/log directory. Log girlies, rise. πŸ“
  • evtchnd_var_run_t β€” Set files with the evtchnd_var_run_t type if you want to store the evtchnd files under the /run or /var/run directory. Run directory, run. πŸƒβ€β™€οΈ

Paths:

/run/evtchnd, /run/evtchnd.pid

Note: 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. So like, chcon is the quick fix, semanage fcontext + restorecon is the committed relationship. Choose wisely. πŸ’€

πŸ”₯ COMMANDS πŸ”₯

semanage fcontext can also be used to manipulate default file context mappings. Slay.

semanage permissive can also be used to manipulate whether or not a process type is permissive. Flexible queen.

semanage module can also be used to enable/disable/install/remove policy modules. Modular and iconic.

semanage boolean can also be used to manipulate the booleans. Boolean baddie.

system-config-selinux is a GUI tool available to customize SELinux policy settings. For when you want to point and click instead of typing. We respect both paths. πŸ–±οΈβœ¨


πŸ’œ AUTHOR πŸ’œ

This manual page was auto-generated using sepolicy manpage. The robots did this one, bestie. We just gave it the group-chat energy. πŸ€–πŸ’…


🌟 SEE ALSO 🌟

selinux(8), evtchnd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)

Go read those if you're nosy. I support it. 🫢


And that's the whole manual, bestie. Auto-generated with love (and sepolicy manpage), dated 26-10-06, version vibes only. Stay secure, stay slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from