efsutils_selinux(8)

πŸ“¦ version 2.0.3, in centos-stream 9, fedora 43

✨ efsutils_selinux β€” the SELinux policy for efs-utils, explained πŸ’–

okay bestie so efsutils_selinux is the Security Enhanced Linux Policy for the efs-utils processes, and we're gonna go through the whole thing together, no skips, no shortcuts, periodt.


🌸 NAME 🌸

efsutils_selinux β€” Security Enhanced Linux Policy for the efs-utils processes 🫢


πŸ’… DESCRIPTION πŸ’…

Security-Enhanced Linux secures the efs-utils processes via flexible mandatory access control. it's giving strict-but-fair, fr fr.

The efs-utils processes execute with the efsutils_t SELinux type. so if you wanna check whether you've got these processes running, you run the ps command with the -Z qualifier, like this:

ps -eZ | grep efsutils_t

that's it. that's the vibe check. πŸ”


πŸšͺ ENTRYPOINTS πŸšͺ

You can enter the efsutils_t SELinux type via the efsutils_exec_t file type. that's the door, bestie πŸšͺ✨

The default entrypoint paths for the efsutils_t domain are:

/usr/bin/amazon-efs-mount-watchdog

one path, one icon, one legend. πŸ‘‘


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (aka domains) for each process running on the system. every process gets its own little identity, main character energy honestly.

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

Policy governs the access confined processes have to files. SELinux efs-utils policy is very flexible, letting users set up their efs-utils processes in as secure a method as possible. we love options.

The following process types are defined for efs-utils:

efsutils_t

Note: semanage permissive -a efsutils_t can be used to make the process type efsutils_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking you but it still tells on you. 😭

πŸŽ€ BOOLEANS πŸŽ€

SELinux policy is customizable based on least access required. efs-utils policy is extremely flexible and has several booleans that let you manipulate the policy and run efs-utils with the tightest access possible. tightest access = bestie behaviour. πŸ’–

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 already on, both slaying. ✨


πŸ—‚οΈ MANAGED FILES πŸ—‚οΈ

The SELinux process type efsutils_t can manage files labeled with the following file types. The paths listed are the default paths for these file types.

Note: the process's UID still needs to have DAC permissions. SELinux said "I'll handle the labels but you still need actual permission, 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

/var/run/crm(/.*)?
/var/run/cman_.*
/var/run/rsctmp(/.*)?
/var/run/aisexec.*
/var/run/heartbeat(/.*)?
/var/run/pcsd-ruby.socket
/var/run/corosync-qnetd(/.*)?
/var/run/corosync-qdevice(/.*)?
/var/run/corosync.pid
/var/run/cpglockd.pid
/var/run/rgmanager.pid
/var/run/cluster/rgmanager.sk

efsutils_log_t

/var/log/amazon/efs(/.*)?

root_t

/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd

var_run_t

/run/.*
/var/run/.*
/run
/var/run
/var/run
/var/spool/postfix/pid

(yes /var/run shows up twice in that list. that's what the original says, so that's what we're saying. not me editing the source. πŸ’€)


🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type. it's the file's little nametag at the 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. SELinux efs-utils policy is very flexible, letting users set up their efs-utils processes in as secure a method as possible. again. still true. πŸ’…

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for efs-utils. If you wanted to store files with these types in a different path, 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 efsutils_exec_t '/srv/efs-utils/content(/.*)?'
restorecon -R -v /srv/myefs-utils_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies, rise. 🧚

The following file types are defined for efs-utils:

efsutils_exec_t

  • Set files with the efsutils_exec_t type, if you want to transition an executable to the efsutils_t domain.

efsutils_log_t

  • Set files with the efsutils_log_t type, if you want to treat the data as efs-utils log data, usually stored under the /var/log directory.

efsutils_unit_file_t

  • Set files with the efsutils_unit_file_t type, if you want to treat the files as efs-utils unit content.
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 chcon is the situationship and semanage fcontext is the marriage. πŸ’

πŸ› οΈ 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. point-and-click girlies, this one's for you πŸ–±οΈβœ¨


✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. not a human author, just a very productive little script. iconic behaviour honestly.


πŸ‘€ SEE ALSO πŸ‘€

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


and that's the whole page, bestie!! πŸŽ‰ this was the efs-utils manual, dated 23-11-09, and that's a wrap. go forth and label responsibly. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from