jockey_selinux(8)

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

πŸŽ€ jockey_selinux(8) β€” SELinux Policy for jockey πŸŽ€

πŸ’– NAME πŸ’–

jockey_selinux β€” the Security Enhanced Linux Policy manual page for the jockey processes. That’s the whole name, bestie. πŸ’…

✨ DESCRIPTION ✨

Security-Enhanced Linux secures the jockey processes via flexible mandatory access control. It’s literally MAC but make it flexible, no cap. πŸ¦‹

The jockey processes execute with the jockey_t SELinux type. Wanna check if you have these processes running? Run the ps command with the -Z qualifier, like this:

ps -eZ | grep jockey_t

🌸 ENTRYPOINTS 🌸

The jockey_t SELinux type can be entered via the jockey_exec_t file type. It’s giving β€œthis is the doorway” energy. πŸšͺ✨

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

/usr/share/jockey/jockey-backend

πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. Yes, every process gets a little domain vibe. 🫢

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

Policy governs the access confined processes have to files. SELinux jockey policy is very flexible, allowing users to set up their jockey processes in as secure a method as possible. Secure but flexible? We love range. πŸ’–

The following process types are defined for jockey:

  • jockey_t
Note: semanage permissive -a jockey_t can be used to make the process type jockey_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like, permissive does not mean silent β€” the receipts are still there. 😭

πŸ“ BOOLEANS πŸ“

SELinux policy is customizable based on least access required. jockey policy is extremely flexible and has several booleans that allow you to manipulate the policy and run jockey with the tightest access possible. Tightest access possible = main character security. πŸ‘‘

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

πŸ¦‹ MANAGED FILES πŸ¦‹

The SELinux process type jockey_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 is not out here overriding DAC, 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

jockey_cache_t

/var/cache/jockey(/.*)?

jockey_tmpfs_t

No default paths listed here for this one β€” it’s just the type. ✨

root_t

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

πŸ’œ FILE CONTEXTS πŸ’œ

SELinux requires files to have an extended attribute to define the file type. 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 jockey policy is very flexible, allowing users to set up their jockey processes in as secure a method as possible. Same secure-but-flexible vibe, now with files. πŸŽ€

πŸ’« EQUIVALENCE DIRECTORIES πŸ’«

jockey policy stores data with multiple different file context types under the /var/log/jockey directory. If you would like to store the data in a different directory, you can use the semanage command to create an equivalence mapping. If you wanted to store this data under the /srv directory, you would execute the following command:

semanage fcontext -a -e /var/log/jockey /srv/jockey
restorecon -R -v /srv/jockey

🌈 STANDARD FILE CONTEXT 🌈

SELinux defines the file context types for jockey. 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.

semanage fcontext -a -t jockey_exec_t '/srv/jockey/content(/.*)?'
restorecon -R -v /srv/myjockey_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlie behavior, honestly. 🧚

The following file types are defined for jockey:

  • jockey_cache_t β€” Set files with the jockey_cache_t type if you want to store the files under the /var/cache directory.
  • jockey_exec_t β€” Set files with the jockey_exec_t type if you want to transition an executable to the jockey_t domain.
  • jockey_tmpfs_t β€” Set files with the jockey_tmpfs_t type if you want to store jockey files on a tmpfs file system.
  • jockey_var_log_t β€” Set files with the jockey_var_log_t type if you want to treat the data as jockey var log data, usually stored under the /var/log directory.

Paths:

/var/log/jockey(/.*)?, /var/log/jockey.log.*
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 vs permanent, choose your fighter. πŸ’…

⚑ 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.

🌟 AUTHOR 🌟

This manual page was auto-generated using sepolicy manpage. Auto-generated and still serving looks. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

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


Cute sign-off time: this page is source/version jockey, dated 26-10-06, and it lives under jockey_selinux(8) β€” bye bestie, stay secure and slay πŸ’…βœ¨

πŸ“¦ where this page comes from