ABRT_RETRACE_COREDUMP_SELINUX(8)

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

πŸ’… abrt_retrace_coredump_selinux β€” the manual page, but make it make sense

okay so bestie, this is a page from section 8 of the manual, and it's the <italic>abrt_re..._selinux(8)</italic> one β€” yes the name is literally abbreviated with dots in the header, that's not a typo, that's just how it's filed. sit down, grab a strawberry drink πŸ“, we're learning SELinux policy for the abrt_retrace_coredump processes and honestly? it's kinda iconic.


✨ NAME ✨

abrt_retrace_coredump_selinux β€” Security Enhanced Linux Policy for the abrt_retrace_coredump processes. that's it, that's the whole name section, no notes πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the abrt_retrace_coredump processes via flexible mandatory access control. yes bestie, mandatory β€” not the "please don't" kind of control. it's giving main character energy for real.

The abrt_retrace_coredump processes execute with the abrt_retrace_coredump_t SELinux type. wanna check if you've got these processes running? just run ps with the -Z qualifier, easy.

For example:

ps -eZ | grep abrt_retrace_coredump_t

slay, now you know 🫢


🌸 ENTRYPOINTS 🌸

so the abrt_retrace_coredump_t SELinux type can be entered via the abrt_retrace_coredump_exec_t file type. that's the doorway, periodt.

the default entrypoint paths for the abrt_retrace_coredump_t domain are literally just:

/usr/bin/coredump2packages

one path. one. iconic minimalism πŸ’œ


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. it's a whole thing, iykyk.

you can see the context of a process using the -Z option to ps.

policy governs the access confined processes have to files. SELinux abrt_retrace_coredump policy is very flexible β€” it allows users to set up their abrt_retrace_coredump processes in as secure a method as possible. flexible AND secure? we love a multitasker ✨

The following process types are defined for abrt_retrace_coredump:

abrt_retrace_coredump_t

Note: semanage permissive -a abrt_retrace_coredump_t can be used to make the process type abrt_retrace_coredump_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's chill about it but it still writes it down in its diary πŸ““

πŸŽ€ BOOLEANS πŸŽ€

SELinux policy is customizable based on least access required. abrt_retrace_coredump policy is extremely flexible and has several booleans that allow you to manipulate the policy and run abrt_retrace_coredump with the tightest access possible. tightest access possible = the vibe check of security πŸ”₯

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.

setsebool -P fips_mode 1

If you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Enabled by default.

setsebool -P nscd_use_shm 1

two booleans, both enabled by default, both living their best life πŸ’–


🧚 MANAGED FILES 🧚

The SELinux process type abrt_retrace_coredump_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. and listen β€” note that the process's UID still needs to have DAC permissions. SELinux said "i'll handle my part, you handle yours" 😭

rpm_log_t

/var/log/dnf.log.*
/var/log/dnf.rpm.log.*
/var/log/dnf.librepo.log.*
/var/log/YaST2(/.*)?
/var/log/hawkey.*
/var/log/up2date.*
/var/log/yum.log.*

rpm_var_cache_t

/var/adm/mount(/.*)?
/var/cache/dnf(/.*)?
/var/cache/yum(/.*)?
/var/cache/zypp(/.*)?
/var/spool/up2date(/.*)?
/var/cache/PackageKit(/.*)?

rpm_var_run_t

/run/yum.*
/run/PackageKit(/.*)?

look at all those paths, highkey organized, we stan πŸŽ€


🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. it's not optional, it's the whole system bestie.

you can see the context of a file using the -Z option to ls.

Policy governs the access confined processes have to these files. SELinux abrt_retrace_coredump policy is very flexible allowing users to set up their abrt_retrace_coredump processes in as secure a method as possible. yes it's repeated, yes it still applies, no we're not skipping it πŸ’…

⭐ STANDARD FILE CONTEXT

SELinux defines the file context types for the abrt_retrace_coredump. so if you wanted to store files with these types in a different paths (yes, the original says "a different paths", we're leaving it, it's part of the lore), 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 abrt_retrace_coredump_exec_t '/srv/abrt_retrace_coredump/content(/.*)?'
restorecon -R -v /srv/myabrt_retrace_coredump_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girls rise πŸ™ˆ

The following file types are defined for abrt_retrace_coredump:

abrt_retrace_coredump_exec_t

  • Set files with the abrt_retrace_coredump_exec_t type, if you want to transition an executable to the abrt_retrace_coredump_t domain.
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. so chcon is the temporary tattoo and semanage fcontext + restorecon is the real ink, no cap πŸ–ŠοΈ

🫢 COMMANDS 🫢

here's the tool squad, all of them, in order:

  • 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, a GUI, for the girlies who like a little visual πŸ’–

πŸ¦‹ AUTHOR πŸ¦‹

This manual page was auto-generated using sepolicy manpage. not me being written by a script and still serving looks ✨


πŸ’œ SEE ALSO πŸ’œ

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

go read those next, bestie, i believe in you 🫢


k bye ily, this page was brought to you by abrt_retrace_coredump, dated 26-10-06, and filed under <rainbow>abrt_re..._selinux(8)</rainbow> β€” go forth and label responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from