sge_execd_selinux(8)

πŸ“¦ version 38.1.87, in centos-stream 9

✨ sge_execd_selinux ✨

okay bestie, so this page is literally the whole vibe check for the SELinux policy that keeps an eye on your sge_execd processes. it's from the SELinux Policy sge_execd manual, and we're gonna walk through it together. no cap, it's actually kind of iconic.


πŸ’… NAME πŸ’…

so sge_execd_selinux is literally the Security Enhanced Linux Policy for all the sge_execd processes. that's it. that's the whole name. slay.


πŸŽ€ DESCRIPTION πŸŽ€

Security-Enhanced Linux is the main character who secures your sge_execd processes using this whole flexible mandatory access control thing. it's giving bodyguard energy, fr fr.

so the sge_execd processes run with the SELinux type sge_execd_t. you can check if you've got these processes running by using the ps command with the -Z qualifier. here's the exact glow-up:

ps -eZ | grep sge_execd_t

run that and see who's living in your process list. periodt.


πŸ¦‹ ENTRYPOINTS πŸ¦‹

okay so the sge_execd_t SELinux type can be entered via the sge_execd_exec_t file type. think of it like the VIP entrance, iykyk.

and the default entrypoint paths for the sge_execd_t domain are literally just:

/usr/bin/sge_execd

that's the only one. the one and only. πŸ’…


🌸 PROCESS TYPES 🌸

SELinux defines process types (also called domains) for every single process running on your system. it's very organized, we love to see it.

you can see the context of a process by using the -Z option with ps. easy peasy.

policy governs the access that confined processes have to files. and the SELinux sge_execd policy is super flexible, allowing users to set up their sge_execd processes in the most secure way possible. highkey iconic.

the following process types are defined for sge_execd:

  • sge_execd_t
note: you can run semanage permissive -a sge_execd_t to make the process type sge_execd_t permissive. and just so you know, SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so it's like, they're still watching, just not stopping you. πŸ™ˆ

πŸ’– BOOLEANS πŸ’–

SELinux policy is customizable based on least access required. and the sge_execd policy is extremely flexible and has several booleans that let you manipulate the policy and run sge_execd with the tightest access possible. it's giving customizable queen energy.

so, if you want to dontaudit all daemons scheduling requests (you know, setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. it's enabled by default.

setsebool -P daemons_dontaudit_scheduling 1

next, if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. also enabled by default.

setsebool -P fips_mode 1

and finally, if you want to allow the system to run with NIS, you must turn on the nis_enabled boolean. this one is disabled by default.

setsebool -P nis_enabled 1

so yeah, flip those switches as needed.


🧚 MANAGED FILES 🧚

okay so the SELinux process type sge_execd_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and just a heads up: the process's UID still needs to have DAC permissions. so even SELinux can't override that, 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/pcsd.socket
/var/run/corosync.pid
/var/run/cpglockd.pid
/var/run/rgmanager.pid
/var/run/cluster/rgmanager.sk

krb5_host_rcache_t

/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0

nfs_t

(this one has no default paths listed, it's just out here living its best life)

root_t

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

sge_spool_t

/var/spool/gridengine(/.*)?

sge_tmp_t

(also no default paths listed, it's a mystery but we respect it)


🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. it's like a little name tag for your files, cute.

you can see the context of a file by using the -Z option with ls. go ahead, try it.

policy governs the access that confined processes have to these files. and the SELinux sge_execd policy is very flexible, allowing users to set up their sge_execd processes in the most secure way possible. (yes, we said this before, but it bears repeating, okay?)

the following file types are defined for sge_execd:

sge_execd_exec_t

  • set files with the sge_execd_exec_t type if you want to transition an executable to the sge_execd_t domain. it's like giving your executable a backstage pass to the sge_execd_t show.
note: file context can be temporarily modified with the chcon command. but if you want to permanently change the file context, you need to use the semanage fcontext command. this will modify the SELinux labeling database. and then you'll need to use restorecon to apply the labels. so it's a whole process, but you got this. πŸ’ͺ

⭐ COMMANDS ⭐

here are the tools you'll need, bestie:

  • 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. (a whole GUI, for when you're feeling fancy)

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was auto-generated using sepolicy manpage. so no human wrote this, it's all machine magic. but we still stan.


πŸ”₯ SEE ALSO πŸ”₯

you should also check out these other manual pages, they're all part of the fam:

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


and that's the whole page, bestie. you're now fully caught up on the sge_execd_selinux policy. go forth and be secure. 🌈✨

this page was brought to you by the sge_execd source, version 26-10-23, dated 26-10-23. stay slay. πŸ’…πŸ’–
πŸ“¦ where this page comes from