firewallgui_selinux(8)

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

πŸ’… firewallgui_selinux(8) β€” the SELinux Policy for firewallgui, bestie

okay so real talk: this is a manual page from the SELinux Policy firewallgui collection, and it's literally all about the firewallgui processes and how SELinux keeps them in line. let's get into it 🫢


✨ NAME ✨

firewallgui_selinux β€” it's the Security Enhanced Linux Policy for the firewallgui processes. that's the whole name section, we ate πŸ’…


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the firewallgui processes via flexible mandatory access control. yes, mandatory. not "if you feel like it" access control. it's giving strict queen energy πŸ‘‘

the firewallgui processes execute with the firewallgui_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. like this:

ps -eZ | grep firewallgui_t

that's it. that's the vibe check πŸ”


πŸ¦‹ ENTRYPOINTS πŸ¦‹

so the firewallgui_t SELinux type can be entered via the firewallgui_exec_t file type. that's the doorway, bestie πŸšͺ

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

/usr/share/system-config-firewall/system-config-firewall-mechanism.py

one path. iconic. no notes ✨


πŸŽ€ PROCESS TYPES πŸŽ€

SELinux defines process types (domains) for each process running on the system. every process gets a little identity, it's giving main character energy for each one 🫢

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 firewallgui policy is very flexible, allowing users to set up their firewallgui processes in as secure a method as possible. flex AND secure, we love to see it πŸ’–

the following process types are defined for firewallgui:

  • firewallgui_t
note: semanage permissive -a firewallgui_t can be used to make the process type firewallgui_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 but it's still gonna gossip about you in the logs πŸ˜­πŸ’€

πŸ”₯ BOOLEANS πŸ”₯

SELinux policy is customizable based on least access required. the firewallgui policy is extremely flexible and has several booleans that allow you to manipulate the policy and run firewallgui 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 β€” you gotta opt in.

setsebool -P nis_enabled 1

two booleans, both get the -P flag so they stick around. periodt πŸ’…


🌈 MANAGED FILES 🌈

the SELinux process type firewallgui_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. but heads up, the process's UID still needs to have DAC permissions β€” SELinux isn't out here overriding DAC, they're a team 🀝

firewallgui_tmp_t

(this one's got no default paths listed, it's just out here existing 🧚)

krb5_host_rcache_t

/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

systemd_passwd_var_run_t

/run/systemd/ask-password(/.*)?
/run/systemd/ask-password-block(/.*)?

look at all those paths. lowkey a lot, highkey organized πŸ—‚οΈ


⭐ FILE CONTEXTS ⭐

SELinux requires files to have an extended attribute to define the file type. it's like a little name tag for every file 🏷️

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 firewallgui policy is very flexible, allowing users to set up their firewallgui processes in as secure a method as possible. (yes, same energy as before, because it's literally the same truth πŸ’…)

πŸŽ€ STANDARD FILE CONTEXT πŸŽ€

SELinux defines the file context types for the firewallgui. if you wanted to store files with these types in 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 firewallgui_exec_t '/srv/firewallgui/content(/.*)?'
restorecon -R -v /srv/myfirewallgui_content
note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved πŸ˜­πŸ’–

the following file types are defined for firewallgui:

  • firewallgui_exec_t β€” set files with the firewallgui_exec_t type if you want to transition an executable to the firewallgui_t domain. the glow-up pipeline ✨
  • firewallgui_tmp_t β€” set files with the firewallgui_tmp_t type if you want to store firewallgui temporary files in the /tmp directories. temp files stay in temp town πŸ—‘οΈ
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. chcon is the quick fix, semanage fcontext + restorecon is the committed relationship, iykyk 🫢

🧚 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. a whole GUI, for the girlies who like clicking πŸ–±οΈπŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

this manual page was auto-generated using sepolicy manpage. a machine wrote this. a robot. and it still ate πŸ’€βœ¨


πŸ’œ SEE ALSO πŸ’œ

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


aaaand that's the whole page!! the source is firewallgui, version/date 26-10-06, and the manual name is firewallgui_selinux(8) β€” so yeah, that's your sign-off bestie, go forth and label responsibly πŸ¦‹πŸ’–πŸŒˆ

πŸ“¦ where this page comes from