sge_shepherd_selinux(8)

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

πŸ’… sge_shepherd_selinux(8) β€” the SELinux glow-up for sge_shepherd

okay so bestie, this is the manual page for sge_shepherd_selinux, straight out of the SELinux Policy sge_shepherd collection. it's giving "everything you need to know about keeping sge_shepherd locked down and cute" ✨


πŸŽ€ NAME πŸŽ€

sge_shepherd_selinux β€” the Security Enhanced Linux policy for the sge_shepherd processes. that's it, that's the whole name section, no cap πŸ’–


✨ DESCRIPTION ✨

so Security-Enhanced Linux secures the sge_shepherd processes via flexible mandatory access control. flexible and mandatory, we love a confident icon πŸ‘‘

the sge_shepherd processes execute with the sge_shepherd_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier. for example:

ps -eZ | grep sge_shepherd_t

go ahead, run it, i'll wait 🫢


πŸšͺ ENTRYPOINTS πŸšͺ

the sge_shepherd_t SELinux type can be entered via the sge_shepherd_exec_t file type. that's the doorway, the main entrance, the red carpet 🌈

the default entrypoint paths for the sge_shepherd_t domain are literally just:

/usr/bin/sge_shepherd

one (1) path. she's exclusive πŸ’…


🧬 PROCESS TYPES 🧬

SELinux defines process types (domains) for each process running on the system. everyone gets a domain, it's called main character energy.

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

policy governs the access confined processes have to files. the SELinux sge_shepherd policy is very flexible, allowing users to setup their sge_shepherd processes in as secure a method as possible. tight security, no crumbs πŸ”₯

the following process types are defined for sge_shepherd:

  • sge_shepherd_t
Note: semanage permissive -a sge_shepherd_t can be used to make the process type sge_shepherd_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so she's not blocking anything but she IS still taking notes πŸ“

πŸ”˜ BOOLEANS πŸ”˜

SELinux policy is customizable based on least access required β€” the "you get nothing unless you need it" philosophy, honestly iconic. sge_shepherd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run sge_shepherd with the tightest access possible. πŸ’œ

deny_execmem β€” if you want to deny user domains applications to map a memory region as both executable and writable, turn this on. heads up: this is dangerous and the executable should be reported in bugzilla. Disabled by default.

setsebool -P deny_execmem 1

mmap_low_allowed β€” if you want to control the ability to mmap a low area of the address space, as configured by /proc/sys/vm/mmap_min_addr, turn this on. Disabled by default.

setsebool -P mmap_low_allowed 1

secure_mode_insmod β€” if you want to disable kernel module loading, turn this on. Disabled by default.

setsebool -P secure_mode_insmod 1

selinuxuser_execheap β€” if you want to allow unconfined executables to make their heap memory executable, turn this on. doing this is a really bad idea 😭 probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. Disabled by default.

setsebool -P selinuxuser_execheap 1

selinuxuser_execstack β€” if you want to allow unconfined executables to make their stack executable, turn this on. this should never, ever be necessary. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. Enabled by default. (yes bestie, enabled β€” read that twice πŸ’€)

setsebool -P selinuxuser_execstack 1

πŸ“ MANAGED FILES πŸ“

the SELinux process type sge_shepherd_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 β€” SELinux isn't out here overriding DAC, she's just doing her own layer, iykyk.

  • file_type
    • all files on the system. yeah. all of them. she's ambitious πŸ¦‹

🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type. labels matter, periodt.

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 sge_shepherd policy is very flexible, allowing users to setup their sge_shepherd processes in as secure a method as possible. πŸ’–

the following file types are defined for sge_shepherd:

sge_shepherd_exec_t

  • Set files with the sge_shepherd_exec_t type, if you want to transition an executable to the sge_shepherd_t domain.
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 quick lil sticky note, semanage fcontext is the permanent record, and restorecon is the one who actually shows up to do the work πŸ™ˆ

πŸ› οΈ 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. a whole GUI, for the people who like clicking 🌸

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was auto-generated using sepolicy manpage.

(not me being auto-generated and still having more personality than half the manpages on this system πŸ’€)


πŸ”— SEE ALSO πŸ”—

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

go read them, they're all besties fr fr 🫢


and that's the whole vibe check, bestie! this page came from the sge_shepherd SELinux policy source, dated 26-10-23, and it's the sge_shepherd_selinux(8) page in the sge_shepherd manual. slay, stay labeled, and don't touch selinuxuser_execheap unless you really mean it βœ¨πŸ’…πŸŒˆ

πŸ“¦ where this page comes from