Netw...inux(8)

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

🌸 NetworkManager_dispatcher_ddclient_selinux β€” the SELinux glow-up guide (section 8, bestie) 🌸

okay so real talk: this is a man page (NetworkManager_dispatcher_ddclient_selinux, section 8) and it's literally the whole rundown on the SELinux policy that keeps the NetworkManager_dispatcher_ddclient processes on a leash. think of it as the group chat rules but for mandatory access control πŸ’…

✨ NAME ✨

NetworkManager_dispatcher_ddclient_selinux β€” the Security Enhanced Linux Policy situation for the NetworkManager_dispatcher_ddclient processes. no cap, that's the whole name section πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so Security-Enhanced Linux secures the NetworkManager_dispatcher_ddclient processes through flexible mandatory access control. yes bestie, MAC, not the lipstick kind 😭

the NetworkManager_dispatcher_ddclient processes execute with the NetworkManager_dispatcher_ddclient_t SELinux type. wanna check if you've got these running? just run the ps command with the -Z qualifier. iykyk πŸ¦‹

for example:

ps -eZ | grep NetworkManager_dispatcher_ddclient_t

πŸšͺ ENTRYPOINTS πŸšͺ

the NetworkManager_dispatcher_ddclient_t SELinux type can be entered via the NetworkManager_dispatcher_ddclient_script_t file type. that's the door, that's the vibe check πŸ’«

the default entrypoint paths for the NetworkManager_dispatcher_ddclient_t domain are the following:

/usr/lib/NetworkManager/dispatcher.d/50-ddclient

πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system β€” icon behavior honestly.

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_ddclient policy is very flexible, allowing users to setup their NetworkManager_dispatcher_ddclient processes in as secure a method as possible. main character policy fr fr πŸ”₯

the following process types are defined for NetworkManager_dispatcher_ddclient:

  • NetworkManager_dispatcher_ddclient_t
Note: semanage permissive -a NetworkManager_dispatcher_ddclient_t can be used to make the process type NetworkManager_dispatcher_ddclient_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops saying no but it still writes it in the group chat πŸ’€

πŸ”˜ BOOLEANS πŸ”˜

SELinux policy is customizable based on least access required. the NetworkManager_dispatcher_ddclient policy is extremely flexible and has several booleans that allow you to manipulate the policy and run NetworkManager_dispatcher_ddclient with the tightest access possible. obsessed 🫢

if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. slay, it's already on ✨

setsebool -P fips_mode 1

πŸ“ MANAGED FILES πŸ“

the SELinux process type NetworkManager_dispatcher_ddclient_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 doing DAC's homework πŸ™ˆ

  • systemd_passwd_var_run_t
/run/systemd/ask-password(/.*)?
/run/systemd/ask-password-block(/.*)?

πŸŽ€ FILE CONTEXTS πŸŽ€

SELinux requires files to have an extended attribute to define the file type. it's giving ✨labeled✨

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_ddclient policy is very flexible, allowing users to setup their NetworkManager_dispatcher_ddclient processes in as secure a method as possible. (yes, same energy as above, the man page said it twice and so am i πŸ’œ)

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the NetworkManager_dispatcher_ddclient. 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. two-step process bestie, no shortcuts πŸ¦‹

semanage fcontext -a -t NetworkManager_dispatcher_ddclient_script_t '/srv/NetworkManager_dispatcher_ddclient/content(/.*)?'
restorecon -R -v /srv/myNetworkManager_dispatcher_ddclient_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise 🌈

the following file types are defined for NetworkManager_dispatcher_ddclient:

  • NetworkManager_dispatcher_ddclient_script_t β€” Set files with the NetworkManager_dispatcher_ddclient_script_t type, if you want to treat the files as NetworkManager dispatcher ddclient script data.
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, know the difference or cry about it 😭

🧚 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. (a robot wrote this, and honestly? it ate πŸ’…)

🌟 SEE ALSO 🌟

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


that's the whole scroll bestie 🫢 this little gem is NetworkManager_dispatcher_ddclient from 26-10-06, living under the Netw...inux(8) banner β€” go forth and label responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from