puppetagent_selinux(8)
π puppetagent_selinux(8) β the SELinux tea on puppetagent
okay so bestie, you opened puppetagent_selinux(8) and that's the manual page for the SELinux policy that governs puppetagent. buckle up, it's actually not that deep, i promise π«Ά
β¨ NAME β¨
puppetagent_selinux β the Security Enhanced Linux Policy for the puppetagent processes, periodt π
πΈ DESCRIPTION πΈ
so Security-Enhanced Linux keeps the puppetagent processes safe via flexible mandatory access control. that's the whole vibe: SELinux is the bouncer, your processes are the guests, and everyone stays in their lane π
the puppetagent processes execute with the puppetagent_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier, literally that easy:
ps -eZ | grep puppetagent_t
slay. now you know π
π¦ ENTRYPOINTS π¦
the puppetagent_t SELinux type can be entered via the puppetagent_exec_t file type. that's the doorway, bestie πͺβ¨
the default entrypoint paths for the puppetagent_t domain are:
/usr/bin/puppet, /usr/bin/puppetd, /usr/bin/start-puppet-agent
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system, so every process gets its own little identity, iykyk.
you can see the context of a process using the -Z option to ps:
ps -Z
policy governs the access confined processes have to files. the SELinux puppetagent policy is very flexible, allowing users to setup their puppetagent processes in as secure a method as possible π₯
the following process types are defined for puppetagent:
puppetagent_t
Note:semanage permissive -a puppetagent_tcan be used to make the process typepuppetagent_tpermissive. 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's just a softer no π«Ά
β BOOLEANS β
SELinux policy is customizable based on least access required. the puppetagent policy is extremely flexible and has several booleans that allow you to manipulate the policy and run puppetagent with the tightest access possible. think of booleans as lil toggle switches for the vibes π
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 deny user domains applications to map a memory region as both executable and writable, you must turn on the deny_execmem boolean. no cap, this is dangerous and the executable should be reported in bugzilla. disabled by default.
setsebool -P deny_execmem 1
if you want to control the ability to mmap a low area of the address space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on the mmap_low_allowed boolean. disabled by default.
setsebool -P mmap_low_allowed 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
if you want to disable kernel module loading, you must turn on the secure_mode_insmod boolean. disabled by default.
setsebool -P secure_mode_insmod 1
if you want to allow unconfined executables to make their heap memory executable, you must turn on the selinuxuser_execheap boolean. doing this is a really bad idea. it probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. disabled by default. π
setsebool -P selinuxuser_execheap 1
if you want to allow unconfined executables to make their stack executable, you must turn on the selinuxuser_execstack boolean. this should never, ever be necessary. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla. disabled by default. π
setsebool -P selinuxuser_execstack 1
π MANAGED FILES π
the SELinux process type puppetagent_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 overriding that, bestie π
file_type- all files on the system
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. it's giving "files need a name tag to get into the party" ποΈ
you can see the context of a file using the -Z option to ls:
ls -Z
policy governs the access confined processes have to these files. the SELinux puppetagent policy is very flexible, allowing users to setup their puppetagent processes in as secure a method as possible π
π§ STANDARD FILE CONTEXT π§
SELinux defines the file context types for the puppetagent. 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 so:
semanage fcontext -a -t puppetagent_exec_t
'/srv/puppetagent/content(/.*)?'
restorecon -R -v /srv/mypuppetagent_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies stay winning β¨
the following file types are defined for puppetagent:
puppetagent_exec_t
- set files with the
puppetagent_exec_ttype, if you want to transition an executable to thepuppetagent_tdomain.
paths:
/usr/bin/puppet, /usr/bin/puppetd, /usr/bin/start-puppet-agent
puppetagent_initrc_exec_t
- set files with the
puppetagent_initrc_exec_ttype, if you want to transition an executable to thepuppetagent_initrc_tdomain.
Note: file context can be temporarily modified with thechconcommand. if you want to permanently change the file context you need to use thesemanage fcontextcommand. this will modify the SELinux labeling database. you will need to userestoreconto apply the labels. temporary fix vs. forever fix, know the difference π«Ά
π COMMANDS π
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings.
π AUTHOR π
this manual page was auto-generated using sepolicy manpage.
π SEE ALSO π
selinux(8), puppetagent(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
and that's the whole page, bestie πΈ this one's puppetagent, dated 26-10-06, living in puppetagent_selinux(8) β go forth and label responsibly π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms