puppetca_selinux(8)

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

πŸ’… puppetca_selinux β€” the glow-up your puppetca processes deserve ✨

okay bestie, so this is the Security-Enhanced Linux policy page for the puppetca processes, and honestly? it's kind of a big deal. this is the <pink>puppetca_selinux(8)</pink> manual page and we're gonna get you comfy with it, no cap.


✨ NAME ✨

puppetca_selinux β€” the Security Enhanced Linux Policy for the puppetca processes πŸŽ€


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the puppetca processes via flexible mandatory access control. it's giving security but make it flexible, fr fr.

the puppetca processes execute with the <purple>puppetca_t</purple> SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier. so like, vibe check your processes, y'know?

For example:

ps -eZ | grep puppetca_t

run that and see what's up πŸ‘‘


πŸ¦‹ ENTRYPOINTS πŸ¦‹

the <purple>puppetca_t</purple> SELinux type can be entered via the <mint>puppetca_exec_t</mint> file type. that's the doorway, bestie β€” the main character entrance. πŸšͺ✨

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

  • /usr/bin/puppetca
  • /usr/bin/start-puppet-ca

πŸ”₯ PROCESS TYPES πŸ”₯

SELinux defines process types (domains) for each process running on the system. iconic behavior honestly.

you can see the context of a process using the -Z option to ps. peek at the context, it's literally right there πŸ‘€

Policy governs the access confined processes have to files. SELinux puppetca policy is very flexible, allowing users to setup their puppetca processes in as secure a method as possible. flexible and secure? we love to see it πŸ’…

the following process types are defined for puppetca:

  • puppetca_t
Note: semanage permissive -a puppetca_t can be used to make the process type puppetca_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so yeah, permissive mode still gossips about your denials behind your back 😭

πŸ’– BOOLEANS πŸ’–

SELinux policy is customizable based on least access required. puppetca policy is extremely flexible and has several booleans that allow you to manipulate the policy and run puppetca with the tightest access possible. tightest access = locked down like a phone with the screen facing down at dinner 🫢

if you want to allow all domains to execute in fips_mode, you must turn on the <mint>fips_mode</mint> boolean. it's Enabled by default, so it's already slaying on its own.

setsebool -P fips_mode 1

πŸŽ€ MANAGED FILES πŸŽ€

the SELinux process type puppetca_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. quick reminder: the processes UID still need to have DAC permissions. don't forget the UID, bestie, it matters πŸ”‘

  • puppet_var_lib_t
/var/lib/puppet(/.*)?
  • security_t
/selinux

🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. it's literally in the metadata, periodt.

you can see the context of a file using the -Z option to ls. yes, the same -Z energy as before β€” it's a whole theme πŸ’«

Policy governs the access confined processes have to these files. SELinux puppetca policy is very flexible, allowing users to setup their puppetca processes in as secure a method as possible. again: flexible, secure, iconic.

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the puppetca. if you wanted to store files with these types in a different path, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. relabeling glow-up, let's gooooo.

semanage fcontext -a -t puppetca_exec_t '/srv/puppetca/content(/.*)?'
restorecon -R -v /srv/mypuppetca_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex is doing the heavy lifting here, no cap.

the following file types are defined for puppetca:

  • puppetca_exec_t β€” Set files with the puppetca_exec_t type, if you want to transition an executable to the puppetca_t domain.

Paths:

  • /usr/bin/puppetca
  • /usr/bin/start-puppet-ca
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 wisely, bestie 🧚

🫢 COMMANDS 🫢

<hotpink>semanage fcontext</hotpink> can also be used to manipulate default file context mappings.

<hotpink>semanage permissive</hotpink> can also be used to manipulate whether or not a process type is permissive.

<hotpink>semanage module</hotpink> can also be used to enable/disable/install/remove policy modules.

<hotpink>semanage boolean</hotpink> can also be used to manipulate the booleans.

<lavender>system-config-selinux</lavender> is a GUI tool available to customize SELinux policy settings. a whole GUI? for the girlies who like clicking buttons, we see you πŸ’»βœ¨


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was auto-generated using sepolicy manpage. auto-generated and still ate, honestly πŸ“


⭐ SEE ALSO ⭐

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


and that's the whole page, bestie πŸŽ‰ go forth and configure your puppetca processes with confidence. this was <rainbow>puppetca_selinux(8)</rainbow> from the SELinux Policy puppetca collection, dated 26-10-06, and it ATE. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from