wicked_selinux(8)

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

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

okay so this is the wicked_selinux page from the SELinux Policy wicked manual, and it's literally your cheat sheet for keeping the wicked processes on a very short leash ✨


🌸 NAME 🌸

wicked_selinux β€” the Security Enhanced Linux Policy for the wicked processes. yes, that's the whole vibe. it's the rulebook, the bouncer, the group-chat admin of wicked's little world 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the wicked processes via flexible mandatory access control. flexible and mandatory β€” it's giving main character energy with boundaries πŸ’…

The wicked processes execute with the wicked_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 wicked_t

go off, ps. -Z is the qualifier that shows you the context, iykyk πŸ”


πŸŽ€ ENTRYPOINTS πŸŽ€

The wicked_t SELinux type can be entered via the wicked_exec_t file type.

The default entrypoint paths for the wicked_t domain are the following:

/usr/lib/wicked/bin(/.*)?, /etc/wicked/extensions/.*,
/usr/libexec/wicked/bin(/.*)?, /usr/bin/ifup, /usr/bin/ifdown,
/usr/bin/wicked, /usr/bin/ifprobe, /usr/bin/wickedd, /usr/bin/ifstatus,
/usr/bin/wickedd-nanny

those are the doors πŸšͺ β€” walk in through any of them and you're in wicked_t territory.


πŸ‘‘ PROCESS TYPES πŸ‘‘

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

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

Policy governs the access confined processes have to files. SELinux wicked policy is very flexible allowing users to setup their wicked processes in as secure a method as possible. ngl, "as secure as possible" is the whole point, bestie πŸ”₯

The following process types are defined for wicked:

wicked_t, wicked_custom_t, wicked_ssh_t
Note: semanage permissive -a wicked_t can be used to make the process type wicked_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. ⚠️ so yeah, permissive = training wheels β€” nothing gets blocked, but the denials still get logged, so everyone sees what you did. πŸ™ˆ

✨ BOOLEANS ✨

SELinux policy is customizable based on least access required. wicked policy is extremely flexible and has several booleans that allow you to manipulate the policy and run wicked with the tightest access possible. least privilege but make it fashion πŸ’…

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 all system processes and Linux users to use bluetooth wireless technology, you must turn on the deny_bluetooth boolean. Disabled by default.

setsebool -P deny_bluetooth 1

If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Disabled by default.

setsebool -P deny_ptrace 1

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 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 support ecryptfs home directories, you must turn on the use_ecryptfs_home_dirs boolean. Disabled by default.

setsebool -P use_ecryptfs_home_dirs 1
remind me to always use -P so it actually persists across reboots 🫢 otherwise it's giving "temporary fix" energy.

🧚 MANAGED FILES 🧚

The SELinux process type wicked_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. like, SELinux said yes but your user permissions still get a vote, bestie 😭

NetworkManager_var_run_t

/run/teamd(/.*)?
/run/nm-xl2tpd.conf.*
/run/nm-dhclient.*
/run/NetworkManager(/.*)?
/run/wpa_supplicant(/.*)?
/run/wicd.pid
/run/NetworkManager.pid
/run/nm-dns-dnsmasq.conf
/run/wpa_supplicant-global

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

dhcpc_state_t

/var/lib/dhcp3?/dhclient.*
/var/lib/dhcpcd(/.*)?
/var/lib/dhclient(/.*)?
/var/lib/wifiroamd(/.*)?

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

named_cache_t

/var/lib/softhsm(/.*)?
/var/lib/unbound(/.*)?
/var/lib/named/data(/.*)?
/var/lib/named/slaves(/.*)?
/var/lib/named/dynamic(/.*)?
/var/lib/named/chroot/var/tmp(/.*)?
/var/lib/named/chroot/var/named/data(/.*)?
/var/lib/named/chroot/var/named/slaves(/.*)?
/var/lib/named/chroot/var/named/dynamic(/.*)?

pppd_var_run_t

/run/(i)?ppp.*pid[^/]*
/run/ppp(/.*)?
/run/pppd[0-9]*.tdb

root_t

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

security_t

/selinux

sysfs_t

/sys(/.*)?

systemd_passwd_var_run_t

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

wicked_etc_rw_t

(no default paths listed for this one β€” it's just out here living its life)

wicked_tmp_t

(same deal, no paths listed)

wicked_var_lib_t

/var/lib/wicked(/.*)?

wicked_var_run_t

/run/wicked(/.*)?

πŸ’– FILE CONTEXTS πŸ’–

SELinux requires files to have an extended attribute to define the file type.

You can see the context of a file using the -Z option to ls. yes, -Z again β€” it's the moment, it's the icon ⭐

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

🌈 STANDARD FILE CONTEXT 🌈

SELinux defines the file context types for the wicked, 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.

semanage fcontext -a -t wicked_exec_t '/srv/wicked/content(/.*)?'
restorecon -R -v /srv/mywicked_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πŸ™Œ

The following file types are defined for wicked:

wicked_etc_rw_t

  • Set files with the wicked_etc_rw_t type, if you want to treat the files as wicked etc read/write content.

wicked_etc_t

  • Set files with the wicked_etc_t type, if you want to store wicked files in the /etc directories.

wicked_exec_t

  • Set files with the wicked_exec_t type, if you want to transition an executable to the wicked_t domain.

Paths:

/usr/lib/wicked/bin(/.*)?, /etc/wicked/extensions/.*,
/usr/libexec/wicked/bin(/.*)?, /usr/bin/ifup, /usr/bin/ifdown,
/usr/bin/wicked, /usr/bin/ifprobe, /usr/bin/wickedd,
/usr/bin/ifstatus, /usr/bin/wickedd-nanny

wicked_initrc_exec_t

  • Set files with the wicked_initrc_exec_t type, if you want to transition an executable to the wicked_initrc_t domain.

wicked_script_t

  • Set files with the wicked_script_t type, if you want to treat the files as wicked script data.

wicked_tmp_t

  • Set files with the wicked_tmp_t type, if you want to store wicked temporary files in the /tmp directories.

wicked_unit_file_t

  • Set files with the wicked_unit_file_t type, if you want to treat the files as wicked unit content.

wicked_var_lib_t

  • Set files with the wicked_var_lib_t type, if you want to store the wicked files under the /var/lib directory.

wicked_var_run_t

  • Set files with the wicked_var_run_t type, if you want to store the wicked files under the /run or /var/run directory.
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 "it's just a phase" of file contexts β€” it does NOT survive a relabel. do not come crying to me when it resets.

πŸ’œ 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. yes bestie, a GUI β€” for when the terminal is too much πŸ’…


🌸 AUTHOR 🌸

This manual page was auto-generated using sepolicy manpage. a robot wrote it, I just gave it a personality πŸŽ€


⭐ SEE ALSO ⭐

selinux(8), wicked(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), wicked_custom_selinux(8), wicked_ssh_selinux(8)


and that's the whole page, bestie, no cap πŸ’– this one's from the wicked manual, dated 26-10-06 β€” go be iconic with your labels βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from