foghorn_selinux(8)
π
foghorn_selinux(8) β the SELinux policy for foghorn, bestie edition
okay so this is the manual page for foghorn_selinux π yeah that's the same page you're reading rn, we're being meta, it's giving inception. anyway. SELinux. foghorn. let's get into it β¨
β¨ NAME β¨
foghorn_selinux β the Security Enhanced Linux Policy for the foghorn processes π¦
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the foghorn processes via flexible mandatory access control. that's the whole vibe. mandatory. not optional. SELinux said "you WILL be labeled" and honestly? iconic π
Your foghorn processes run with the foghorn_t SELinux type. wanna check if you've got these processes running? run the ps command with the -Z qualifier. like this, fr fr:
ps -eZ | grep foghorn_t
that's it. that's the check. no cap π₯
πͺ ENTRYPOINTS πͺ
You can enter the foghorn_t SELinux type via the foghorn_exec_t file type. that's the door, that's the entrance, that's the moment β¨
The default entrypoint paths for the foghorn_t domain are literally just:
/usr/bin/foghorn
one path. one icon. one main character π«Ά
π PROCESS TYPES π
so SELinux defines process types (also called domains) for each process running on the system. every process gets a little label, a little identity, a little vibe check π
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 foghorn policy is super flexible β it allows users to set up their foghorn processes in as secure a method as possible. tightest access possible, periodt π₯
The following process types are defined for foghorn:
foghorn_t
Note:semanage permissive -a foghorn_tcan be used to make the process typefoghorn_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's still snitching in the logs π
π BOOLEANS π
SELinux policy is customizable based on least access required. the foghorn policy is extremely flexible and has several booleans that let you manipulate the policy and run foghorn with the tightest access possible. little switches. little toggles. little slay buttons π
cluster_use_execmemβ if you want to allow cluster administrative cluster domainsmemcheck-amd64-to use executable memory, you must turn this one on. Disabled by default.
setsebool -P cluster_use_execmem 1
daemons_dontaudit_schedulingβ if you want to dontaudit all daemons scheduling requests (setsched,sys_nice), you must turn this one on. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
fips_modeβ if you want to allow all domains to execute infips_mode, you must turn this one on. Enabled by default.
setsebool -P fips_mode 1
nis_enabledβ if you want to allow system to run with NIS, you must turn this one on. Disabled by default.
setsebool -P nis_enabled 1
ποΈ MANAGED FILES ποΈ
The SELinux process type foghorn_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and bestie, hear me β the process's UID still needs to have DAC permissions. SELinux labels don't override plain old Unix permissions, no matter how cute they are π
cluster_conf_t
/etc/cluster(/.*)?
cluster_logβ no default paths listed for this one bestie, it's just here π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
foghorn_tmpfs_tβ no default paths listed here either π«Άfoghorn_var_run_tβ same situation, no default paths listed β¨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
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
snmpd_var_lib_t
/var/agentx(/.*)?
/var/net-snmp(/.*)
/var/lib/snmp(/.*)?
/var/net-snmp(/.*)?
/var/lib/net-snmp(/.*)?
/var/spool/snmptt(/.*)?
/usr/share/snmp/mibs/.index
(and yes, /var/net-snmp(/.*) shows up twice in that list. that's how the page has it. we don't question the ancestors π
)
π·οΈ FILE CONTEXTS π·οΈ
SELinux requires files to have an extended attribute to define the file type. every file's got a little name tag, a little "hi my type isβ¦" π
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 foghorn policy is super flexible and allows users to set up their foghorn processes in as secure a method as possible. yes we said that already. it's still true. π
β STANDARD FILE CONTEXT β
SELinux defines the file context types for foghorn. 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 foghorn_exec_t '/srv/foghorn/content(/.*)?'
restorecon -R -v /srv/myfoghorn_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved πΈ
The following file types are defined for foghorn:
foghorn_exec_tβ set files with thefoghorn_exec_ttype if you want to transition an executable to thefoghorn_tdomain.foghorn_initrc_exec_tβ set files with thefoghorn_initrc_exec_ttype if you want to transition an executable to thefoghorn_initrc_tdomain.foghorn_tmpfs_tβ set files with thefoghorn_tmpfs_ttype if you want to storefoghornfiles on atmpfsfile system. tmpfs! ram! fast! β¨foghorn_var_log_tβ set files with thefoghorn_var_log_ttype if you want to treat the data asfoghornvar log data, usually stored under the/var/logdirectory.foghorn_var_run_tβ set files with thefoghorn_var_run_ttype if you want to store thefoghornfiles under the/runor/var/rundirectory.
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. and then you will need to userestoreconto apply the labels.chconis the quick fix,semanage+restoreconis the committed relationship π
π οΈ COMMANDS π οΈ
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings. a GUI! for the girlies who like buttons π
βοΈ AUTHOR βοΈ
This manual page was auto-generated using sepolicy manpage. a bot wrote this. and honestly? it ate. π
π SEE ALSO π
selinux(8), foghorn(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
and that's the whole page bestie!! this one's from thefoghornmanual, dated26-10-06β go forth and label responsibly π¦πβ¨
π¦ 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