fcoemon_selinux(8)

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

✨ fcoemon_selinux β€” the SELinux policy for fcoemon, explained by your favorite Unix bestie πŸ’…

okay so bestie, you know how SELinux is literally the bouncer at the club that decides who gets in and who gets denied? yeah. this is the whole official policy for the fcoemon processes, and i'm gonna walk you through it like we're gossiping at a sleepover. it's from the fcoemon_selinux(8) manual, and honestly? it ate. let's get into it 🫢


🌸 NAME 🌸

fcoemon_selinux β€” the Security Enhanced Linux Policy for the fcoemon processes. periodt. that's the whole vibe.


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux keeps the fcoemon processes secure via flexible mandatory access control. it's giving protective bestie energy, no cap.

the fcoemon processes execute with the fcoemon_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier. like, literally just do this, bestie:

ps -eZ | grep fcoemon_t

that's it. that's the whole check. you're welcome πŸ’–


πŸŽ€ ENTRYPOINTS πŸŽ€

so the fcoemon_t SELinux type can be entered via the fcoemon_exec_t file type. think of it as the main character entrance πŸ’…

the default entrypoint paths for the fcoemon_t domain are literally just one icon:

/usr/bin/fcoemon

that's the one. the only. she's a solo act.


πŸ”₯ PROCESS TYPES πŸ”₯

SELinux defines process types (which are also called domains, iykyk) for each process running on the system. very demure, very mindful.

you can see the context of a process using the -Z option to ps. yes, again with the -Z. it's the vibe check tool. πŸ”

policy governs the access confined processes have to files. and the SELinux fcoemon policy is very flexible, allowing users to set up their fcoemon processes in as secure a method as possible. it's giving customizable queen. πŸ‘‘

the following process types are defined for fcoemon:

fcoemon_t

Note: semanage permissive -a fcoemon_t can be used to make the process type fcoemon_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, she's on a break but still keeping receipts. 😭

πŸ’œ BOOLEANS πŸ’œ

SELinux policy is customizable based on least access required. the fcoemon policy is extremely flexible and has several booleans that allow you to manipulate the policy and run fcoemon with the tightest access possible. choose your own adventure but make it secure. 🧚

  • 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

both on by default, both slaying in their own lane. βœ…


🌈 MANAGED FILES 🌈

the SELinux process type fcoemon_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. don't forget your basics, 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

fcoemon_var_run_t

/run/fcm(/.*)?
/run/fcoemon.pid

root_t

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

sysfs_t

/sys(/.*)?

that's a lot of paths, but we keep every single one. organized and iconic. πŸ“


⭐ FILE CONTEXTS ⭐

SELinux requires files to have an extended attribute to define the file type. it's like every file needs a little name tag at the party. πŸŽ€

you can see the context of a file using the -Z option to ls. see? -Z again. she's everywhere. πŸ’…

policy governs the access confined processes have to these files. and the SELinux fcoemon policy is very flexible, allowing users to set up their fcoemon processes in as secure a method as possible. (yes i'm saying it again, it's that flexible, periodt.)

🌸 STANDARD FILE CONTEXT 🌸

SELinux defines the file context types for fcoemon. 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. like so:

semanage fcontext -a -t fcoemon_exec_t '/srv/fcoemon/content(/.*)?'
restorecon -R -v /srv/myfcoemon_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 fcoemon:

  • fcoemon_exec_t β€” set files with the fcoemon_exec_t type if you want to transition an executable to the fcoemon_t domain.
  • fcoemon_initrc_exec_t β€” set files with the fcoemon_initrc_exec_t type if you want to transition an executable to the fcoemon_initrc_t domain.
  • fcoemon_var_run_t β€” set files with the fcoemon_var_run_t type if you want to store the fcoemon files under the /run or /var/run directory.

Paths:

/run/fcm(/.*)?, /run/fcoemon.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. temporary is cute but permanent is the goal, 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.

five little tools, all doing their own thing, all essential. the avengers of SELinux config. πŸ¦Έβ€β™€οΈ


🫢 AUTHOR 🫢

this manual page was auto-generated using sepolicy manpage. no human wrote this one, she's self-made. πŸ’…


🌟 SEE ALSO 🌟

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

go read those too, bestie. knowledge is power and you're literally glowing with it. ✨


and that's the whole page, no cap. officially fcoemon from the 26-10-06 release, dated 26-10-06, served to you with love and SELinux facts. mwah. πŸ˜˜πŸ’–

πŸ“¦ where this page comes from