webalizer_selinux(8)
β¨ webalizer_selinux(8) β¨
okay so this is the manual page for webalizer_selinux β the SELinux Policy for the webalizer processes π
(yes bestie, the whole page is about keeping webalizer on a leash, and honestly? iconic.)
π NAME π
webalizer_selinux β Security Enhanced Linux Policy for the webalizer processes π¦
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the webalizer processes via flexible mandatory access control. literally that's the whole vibe β flexible, mandatory, access control, no cap π₯
The webalizer processes execute with the webalizer_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 webalizer_t
π¦ ENTRYPOINTS π¦
The webalizer_t SELinux type can be entered via the webalizer_exec_t file type.
The default entrypoint paths for the webalizer_t domain are the following:
/usr/bin/awffull, /usr/bin/webalizer, /usr/bin/webazolver
π 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 webalizer policy is very flexible allowing users to setup their webalizer processes in as secure a method as possible. so secure, so flexible, we love to see it β¨
The following process types are defined for webalizer:
webalizer_t, webalizer_script_t
Note:semanage permissive -a webalizer_tcan be used to make the process typewebalizer_tpermissive. 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 still judges you and writes it down π
π BOOLEANS π
SELinux policy is customizable based on least access required. webalizer policy is extremely flexible and has several booleans that allow you to manipulate the policy and run webalizer with the tightest access possible. tightest access, bestie β not a single crumb of extra permission π
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
π MANAGED FILES π
The SELinux process type webalizer_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 yes queen you have SELinux clearance but you STILL need the regular perms, both are required fr fr π
httpd_sys_content_t
/srv/([^/]*/)?www(/.*)?
/var/www(/.*)?
/etc/htdig(/.*)?
/srv/gallery2(/.*)?
/var/lib/trac(/.*)?
/var/lib/htdig(/.*)?
/var/www/icons(/.*)?
/usr/share/glpi(/.*)?
/usr/share/htdig(/.*)?
/usr/share/drupal.*
/usr/share/z-push(/.*)?
/var/www/svn/conf(/.*)?
/usr/share/icecast(/.*)?
/var/lib/cacti/rra(/.*)?
/usr/share/ntop/html(/.*)?
/usr/share/nginx/html(/.*)?
/usr/share/doc/ghc/html(/.*)?
/usr/share/openca/htdocs(/.*)?
/usr/share/selinux-policy[^/]*/html(/.*)?
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
webalizer_rw_content_t
/var/www/usage(/.*)?
webalizer_tmp_t
(no default paths listed for this one, bestie β it's just vibes π«Ά)
webalizer_var_lib_t
/var/lib/webalizer(/.*)?
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type. yes, the files have β¨labelsβ¨, everyone's got a little something on their xattr π
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 webalizer policy is very flexible allowing users to setup their webalizer processes in as secure a method as possible.
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the webalizer, 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 webalizer_exec_t '/srv/webalizer/content(/.*)?'
restorecon -R -v /srv/mywebalizer_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved π except when it matches something you didn't mean, then it's regex my nemesis
The following file types are defined for webalizer:
webalizer_content_tβ Set files with thewebalizer_content_ttype, if you want to treat the files aswebalizercontent. πwebalizer_etc_tβ Set files with thewebalizer_etc_ttype, if you want to storewebalizerfiles in the/etcdirectories.webalizer_exec_tβ Set files with thewebalizer_exec_ttype, if you want to transition an executable to thewebalizer_tdomain. π₯
Paths:
/usr/bin/awffull, /usr/bin/webalizer, /usr/bin/webazolver
webalizer_htaccess_tβ Set files with thewebalizer_htaccess_ttype, if you want to treat the file as awebalizeraccess file.webalizer_ra_content_tβ Set files with thewebalizer_ra_content_ttype, if you want to treat the files aswebalizerread/append content.webalizer_rw_content_tβ Set files with thewebalizer_rw_content_ttype, if you want to treat the files aswebalizerread/write content.webalizer_script_exec_tβ Set files with thewebalizer_script_exec_ttype, if you want to transition an executable to thewebalizer_script_tdomain. πΈwebalizer_tmp_tβ Set files with thewebalizer_tmp_ttype, if you want to storewebalizertemporary files in the/tmpdirectories.webalizer_usage_tβ Set files with thewebalizer_usage_ttype, if you want to treat the files aswebalizerusage data.webalizer_var_lib_tβ Set files with thewebalizer_var_lib_ttype, if you want to store thewebalizerfiles under the/var/libdirectory.webalizer_write_tβ Set files with thewebalizer_write_ttype, if you want to treat the files aswebalizerread/write content.
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.chcon= temporary glow-up,semanage fcontext+restorecon= permanent era π
π 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 GUI!! for the besties who prefer clicking π±οΈβ¨
π«Ά AUTHOR π«Ά
This manual page was auto-generated using sepolicy manpage. (the robots wrote it, I just gave it ~personality~ π)
π SEE ALSO π
selinux(8), webalizer(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), webalizer_script_selinux(8), webalizer_script_selinux(8)
(yes webalizer_script_selinux(8) is listed twice β that's not me being extra, that's canon, bestie π)
mwah π this page says webalizer, dated 26-10-06, and it's page webalizer_selinux(8) of the manual β read it, love it, label your files correctly, periodt. π
π¦ 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