ABRT_UPLOAD_WATCH_SELINUX(8)

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

πŸ’… abrt_upload_watch_selinux β€” bestie edition πŸ’…

okay so this is the abrt_upload_watch_selinux(8) page, aka the SELinux Policy for abrt_upload_watch. yes the header got truncated to abrt_upl...h_selinux(8) because manpages are dramatic like that. anyway, sit down, grab a boba, we're learning SELinux together πŸ§‹βœ¨


🌸 NAME 🌸

abrt_upload_watch_selinux β€” it's the Security Enhanced Linux Policy for the abrt_upload_watch processes. that's it, that's the name, no cap πŸ’…


✨ DESCRIPTION ✨

Security-Enhanced Linux secures the abrt_upload_watch processes via flexible mandatory access control. yes bestie, mandatory β€” it's not optional, it's giving "the system said so, periodt."

The abrt_upload_watch processes execute with the abrt_upload_watch_t SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier.

for example:

ps -eZ | grep abrt_upload_watch_t

slay, look at you checking your own processes 😌


πŸŽ€ ENTRYPOINTS πŸŽ€

The abrt_upload_watch_t SELinux type can be entered via the abrt_upload_watch_exec_t file type.

the default entrypoint paths for the abrt_upload_watch_t domain are literally just this one path, no crumbs:

/usr/bin/abrt-upload-watch

πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system, iykyk.

you can see the context of a process using the -Z option to ps. very demure, very mindful.

Policy governs the access confined processes have to files. SELinux abrt_upload_watch policy is very flexible, allowing users to setup their abrt_upload_watch processes in as secure a method as possible. we love a customizable king 🫢

the following process types are defined for abrt_upload_watch:

  • abrt_upload_watch_t
Note: semanage permissive -a abrt_upload_watch_t can be used to make the process type abrt_upload_watch_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's still keeping receipts πŸ’€

πŸ’– BOOLEANS πŸ’–

SELinux policy is customizable based on least access required. abrt_upload_watch policy is extremely flexible and has several booleans that allow you to manipulate the policy and run abrt_upload_watch with the tightest access possible. tightest access = main character energy, we don't overshare πŸ”₯

if you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. enabled by default, bestie.

setsebool -P daemons_dontaudit_scheduling 1

if you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. also enabled by default, we love a default ✨

setsebool -P fips_mode 1

🌸 MANAGED FILES 🌸

The SELinux process type abrt_upload_watch_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. don't forget, SELinux isn't the whole story, okay? πŸ‘‘

abrt_upload_watch_tmp_t

(no default paths listed, it's mysterious like that πŸ¦‹)

cluster_conf_t

/etc/cluster(/.*)?

cluster_var_lib_t

/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?

cluster_var_run_t

/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk

public_content_rw_t

/var/spool/abrt-upload(/.*)?

root_t

/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

πŸŽ€ FILE CONTEXTS πŸŽ€

SELinux requires files to have an extended attribute to define the file type. yes, an extended attribute, we're fancy here πŸ’…

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

Policy governs the access confined processes have to these files. SELinux abrt_upload_watch policy is very flexible, allowing users to setup their abrt_upload_watch processes in as secure a method as possible. same energy as before, still iconic 🌈

STANDARD FILE CONTEXT

SELinux defines the file context types for the abrt_upload_watch. 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. it's giving "customization era" ✨

semanage fcontext -a -t abrt_upload_watch_exec_t '/srv/abrt_upload_watch/content(/.*)?'
restorecon -R -v /srv/myabrt_upload_watch_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. she's regex-coded fr fr 🧚

the following file types are defined for abrt_upload_watch:

  • abrt_upload_watch_exec_t β€” set files with the abrt_upload_watch_exec_t type, if you want to transition an executable to the abrt_upload_watch_t domain. this is the glow-up pipeline bestie πŸ‘‘
  • abrt_upload_watch_tmp_t β€” set files with the abrt_upload_watch_tmp_t type, if you want to store abrt upload watch temporary files in the /tmp directories. temp files stay in /tmp, we don't clutter the timeline πŸ’…
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 is literally the whole plot twist here 😭

πŸ¦‹ SHARING FILES πŸ¦‹

if you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and public_content_rw_t. these context allow any of the above domains to read the content. if you want a particular domain to write to the public_content_rw_t domain, you must set the appropriate boolean. sharing is caring but read the rules first fr fr

Allow abrt_upload_watch servers to read the /var/abrt_upload_watch directory by adding the public_content_t file type to the directory and by restoring the file type.

semanage fcontext -a -t public_content_t "/var/abrt_upload_watch(/.*)?"
restorecon -F -R -v /var/abrt_upload_watch

Allow abrt_upload_watch servers to read and write /var/abrt_upload_watch/incoming by adding the public_content_rw_t type to the directory and by restoring the file type. you also need to turn on the abrt_upload_watch_anon_write boolean.

semanage fcontext -a -t public_content_rw_t "/var/abrt_upload_watch/incoming(/.*)?"
restorecon -F -R -v /var/abrt_upload_watch/incoming
setsebool -P abrt_upload_watch_anon_write 1

if you want to determine whether abrt-handle-upload can modify public files used for public file transfer services in /var/spool/abrt-upload/., you must turn on the abrt_upload_watch_anon_write boolean.

setsebool -P abrt_upload_watch_anon_write 1

πŸ’œ COMMANDS πŸ’œ

  • semanage fcontext can also be used to manipulate default file context mappings. it's multifunctional bestie πŸ’…
  • semanage permissive can also be used to manipulate whether or not a process type is permissive. vibe check for your domains ✨
  • semanage module can also be used to enable/disable/install/remove policy modules. modular icon behavior πŸ‘‘
  • semanage boolean can also be used to manipulate the booleans. booleans are literally the settings of SELinux, no cap 🌸
  • system-config-selinux is a GUI tool available to customize SELinux policy settings. for when you want a whole interface, very main character of it πŸ–₯οΈπŸ’–

🌟 AUTHOR 🌟

This manual page was auto-generated using sepolicy manpage . β€” yes, auto-generated, she didn't even have to try, effortless queen 🧚


🌈 SEE ALSO 🌈

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

go read those bestie, the lore is deep πŸ“šπŸ’…


alright that's the whole page!! this one is from abrt_upload_watch, dated 26-10-06, and it lives in the section abrt_upl...h_selinux(8). love that for us. now go forth and manage your SELinux policy with confidence, periodt πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from