NETWORKMANAGER_DISPATCHER_CHRONYC_SELINUX(8)

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

πŸ’… NAME πŸ’…

okay bestie, this is the manual page for NetworkManager_dispatcher_chronyc_selinux β€” aka the Security Enhanced Linux Policy for the NetworkManager_dispatcher_chronyc processes πŸŽ€


✨ DESCRIPTION ✨

so Security-Enhanced Linux keeps the NetworkManager_dispatcher_chronyc processes in check via flexible mandatory access control. like, it's literally the vibe police but for syscalls 🫢

the NetworkManager_dispatcher_chronyc processes run with the NetworkManager_dispatcher_chronyc_t SELinux type. wanna check if you've got these processes running rn? just run the ps command with the -Z qualifier, no cap:

ps -eZ | grep NetworkManager_dispatcher_chronyc_t

πŸšͺ ENTRYPOINTS πŸšͺ

you can enter the NetworkManager_dispatcher_chronyc_t SELinux type through the NetworkManager_dispatcher_chronyc_script_t file type πŸ”₯

the default entrypoint paths for the NetworkManager_dispatcher_chronyc_t domain are, and I'm listing every single one because we don't skip:

  • /usr/lib/NetworkManager/dispatcher.d/20-chrony
  • /etc/NetworkManager/dispatcher.d/20-chrony-dhcp
  • /usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
  • /etc/NetworkManager/dispatcher.d/20-chrony-onoffline
  • /usr/lib/NetworkManager/dispatcher.d/20-chrony-onoffline

πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (aka domains) for each process running on the system, periodt.

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 NetworkManager_dispatcher_chronyc policy is very flexible, allowing users to set up their NetworkManager_dispatcher_chronyc processes in as secure a method as possible ✨

the following process types are defined for NetworkManager_dispatcher_chronyc:

  • NetworkManager_dispatcher_chronyc_t
note bestie: semanage permissive -a NetworkManager_dispatcher_chronyc_t can be used to make the process type NetworkManager_dispatcher_chronyc_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated πŸ‘€ so like, it's not a free pass, it just doesn't block.

🎚️ BOOLEANS 🎚️

SELinux policy is customizable based on least access required. the NetworkManager_dispatcher_chronyc policy is extremely flexible and has several booleans that let you manipulate the policy and run NetworkManager_dispatcher_chronyc with the tightest access possible πŸ”’

if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. it's enabled by default 🫢

setsebool -P fips_mode 1

πŸ“ MANAGED FILES πŸ“

the SELinux process type NetworkManager_dispatcher_chronyc_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and fyi, the processes UID still needs to have DAC permissions πŸ’€

chronyd_var_run_t

/run/chrony(/.*)?
/run/chronyd(/.*)?
/run/chrony-dhcp(/.*)?
/run/chrony-helper(/.*)?
/run/chronyd.pid
/run/chronyd.sock

🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type, that's just how it is ✨

you can see the context of a file using the -Z option to ls πŸ‘€

policy governs the access confined processes have to these files. the SELinux NetworkManager_dispatcher_chronyc policy is very flexible, allowing users to set up their NetworkManager_dispatcher_chronyc processes in as secure a method as possible 🫢

🌸 STANDARD FILE CONTEXT 🌸

SELinux defines the file context types for the NetworkManager_dispatcher_chronyc. so if you wanted to store files with these types in a 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 NetworkManager_dispatcher_chronyc_script_t '/srv/NetworkManager_dispatcher_chronyc/content(/.*)?'
restorecon -R -v /srv/myNetworkManager_dispatcher_chronyc_content
note: SELinux often uses regular expressions to specify labels that match multiple files 🧚

the following file types are defined for NetworkManager_dispatcher_chronyc:

NetworkManager_dispatcher_chronyc_script_t

  • set files with the NetworkManager_dispatcher_chronyc_script_t type if you want to treat the files as NetworkManager dispatcher chronyc script data πŸ”₯

Paths:

/usr/lib/NetworkManager/dispatcher.d/20-chrony
/etc/NetworkManager/dispatcher.d/20-chrony-dhcp
/usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
/etc/NetworkManager/dispatcher.d/20-chrony-onoffline
/usr/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
note bestie: 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 πŸ™ˆ like, don't forget the restorecon step, that's the whole point.

πŸ› οΈ 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 . β€” yes, that trailing space and period is iconic of them, we keep it exactly 🫢


πŸ”— SEE ALSO πŸ”—

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


and that's the whole page bestie, you ate πŸ’…βœ¨

NetworkManager_dispatcher_chronyc Β· 26-10-06 Β· Netw...linux(8) β€” mwah, go forth and label responsibly πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from