cdcc_selinux(8)

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

πŸ’… cdcc_selinux β€” the SELinux tea for your cdcc processes

okay bestie, so this is the cdcc_selinux manual page β€” it's the SELinux policy page for the cdcc processes, and honestly? it's giving security but make it cute. let's get into it πŸ’–


✨ NAME ✨

cdcc_selinux β€” the Security Enhanced Linux Policy for the cdcc processes. that's the whole vibe. 🫢


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the cdcc processes via flexible mandatory access control. lowkey iconic of it. πŸŽ€

the cdcc processes execute with the cdcc_t SELinux type β€” that's their whole main character label. you can check if you have these processes running by executing the ps command with the -Z qualifier, like this:

ps -eZ | grep cdcc_t

slay, now you can see who's wearing the cdcc_t fit. ✨


πŸ¦‹ ENTRYPOINTS πŸ¦‹

the cdcc_t SELinux type can be entered via the cdcc_exec_t file type. that's the doorway, bestie.

the default entrypoint paths for the cdcc_t domain are literally these:

/usr/bin/cdcc

πŸ‘‘ PROCESS TYPES πŸ‘‘

so SELinux defines process types (domains) for each process running on the system. yes, every process gets its own little domain, very personalized.

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

the following process types are defined for cdcc:

cdcc_t
Note: semanage permissive -a cdcc_t can be used to make the process type cdcc_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking stuff but it's still gonna gossip about you in the logs. πŸ™ˆ

πŸ“ BOOLEANS πŸ“

SELinux policy is customizable based on least access required. the cdcc policy is extremely flexible and has several booleans that allow you to manipulate the policy and run cdcc with the tightest access possible. tightest access = the most locked-down slay. πŸ”₯

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

setsebool -P fips_mode 1

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

setsebool -P nis_enabled 1

🌈 MANAGED FILES 🌈

the SELinux process type cdcc_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and reminder: the process's UID still needs to have DAC permissions. SELinux isn't gonna override your regular permission drama. 😭

  • cdcc_tmp_t β€” no default path list given, it just vibes πŸ’«
  • dcc_client_map_t β€” default paths:
/etc/dcc/map
/run/dcc/map
/var/dcc/map
/var/lib/dcc/map
  • krb5_host_rcache_t β€” default paths:
/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

🧚 FILE CONTEXTS 🧚

SELinux requires files to have an extended attribute to define the file type. it's like a name tag but for files, 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. the SELinux cdcc policy is very flexible, allowing users to setup their cdcc processes in as secure a method as possible. (yes we said that already, it's still true πŸ’œ)

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the cdcc. 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. like this:

semanage fcontext -a -t cdcc_exec_t '/srv/cdcc/content(/.*)?'
restorecon -R -v /srv/mycdcc_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex jumpscare, but make it secure. πŸŽ€

the following file types are defined for cdcc:

  • cdcc_exec_t β€” Set files with the cdcc_exec_t type, if you want to transition an executable to the cdcc_t domain.
  • cdcc_tmp_t β€” Set files with the cdcc_tmp_t type, if you want to store cdcc temporary files in the /tmp directories.
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 chcon is giving quick fix, semanage fcontext + restorecon is giving commitment. πŸ’

πŸ’€ 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. yes bestie, a whole GUI. point and click energy. πŸ–±οΈβœ¨

🌸 AUTHOR 🌸

This manual page was auto-generated using sepolicy manpage. the robot wrote it, I just gave it a makeover. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

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


okay that's the whole page, go forth and be secure 🫢 β€” this iconic little doc is cdcc, dated 26-10-06, and it lives at cdcc_selinux(8). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from