git_system_selinux(8)
β¨ git_system_selinux(8) β the SELinux glow-up for git_system β¨
okay bestie, gather round, because this is the git_system_selinux page from the SELinux Policy git_system manual and it's genuinely so important if you're messing with git daemons and mandatory access control. no cap, this is the whole vibe. π
πΈ NAME πΈ
git_system_selinux β the Security Enhanced Linux policy for the git_system processes. that's it, that's the name, iconic.
π¦ DESCRIPTION π¦
Security-Enhanced Linux secures the git_system processes via flexible mandatory access control. yes, mandatory β not the gentle "pretty please" kind. SELinux is the main character here and it does not negotiate. π
The git_system processes execute with the git_system_t SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier. like this, literally:
ps -eZ | grep git_system_t
run that and see what's up. if something pops up with git_system_t, congrats, you found the vibe. π
π§ ENTRYPOINTS π§
so the git_system_t SELinux type can be entered via the gitd_exec_t file type. that's the doorway. the only doorway. respect it. πͺβ¨
the default entrypoint paths for the git_system_t domain are the following, and yes i'm giving you the exact path because precision is the moment:
/usr/libexec/git-core/git-daemon
π PROCESS TYPES π
SELinux defines process types (aka domains) for each process running on the system. every process gets a little label, it's giving personalized name tags at a party. π
you can see the context of a process using the -Z option to ps. (yes, same -Z as before, she's consistent, we love her.)
policy governs the access confined processes have to files. the SELinux git_system policy is very flexible β allowing users to setup their git_system processes in as secure a method as possible. flexible and secure? we stan. π
the following process types are defined for git_system:
git_system_t
note:semanage permissive -a git_system_tcan be used to make the process typegit_system_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, she won't block you, but she will be watching and taking notes. π
π BOOLEANS π
SELinux policy is customizable based on least access required. the git_system policy is extremely flexible and has several booleans that allow you to manipulate the policy and run git_system with the tightest access possible. it's giving "customize your own adventure." πΊοΈβ¨
git_system_enable_homedirsβ turn this on if you want to determine whether the Git system daemon can search home directories. Disabled by default.
setsebool -P git_system_enable_homedirs 1
git_system_use_cifsβ turn this on if you want to determine whether the Git system daemon can access cifs file systems. Disabled by default.
setsebool -P git_system_use_cifs 1
git_system_use_nfsβ turn this on if you want to determine whether the Git system daemon can access nfs file systems. Disabled by default.
setsebool -P git_system_use_nfs 1
daemons_dontaudit_schedulingβ turn this on if you want to dontaudit all daemons scheduling requests (setsched,sys_nice). Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
fips_modeβ turn this on if you want to allow all domains to execute in fips_mode. Enabled by default.
setsebool -P fips_mode 1
nis_enabledβ turn this on if you want to allow system to run with NIS. Disabled by default.
setsebool -P nis_enabled 1
use_nfs_home_dirsβ turn this on if you want to support NFS home directories. Enabled by default.
setsebool -P use_nfs_home_dirs 1
use_samba_home_dirsβ turn this on if you want to support SAMBA home directories. Disabled by default.
setsebool -P use_samba_home_dirs 1
π MANAGED FILES π
the SELinux process type git_system_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and babes, note the processes UID still need to have DAC permissions β SELinux isn't doing everything for you, she's not your personal assistant. π
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
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
π₯ COMMANDS π₯
there are a bunch of tools that do the same thing, so use whichever one is your fave. no gatekeeping here.
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. it's giving "for the girls who prefer a little interface with their policy." π±οΈπ
β AUTHOR β
this manual page was auto-generated using sepolicy manpage. so nobody hand-wrote this, the machines did it, and honestly they ate. π€β¨
π SEE ALSO π
selinux(8), git_system(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8). go read those too if you want the full lore. iykyk. π
and that's the whole page bestie! til we meet again: git_system, version date 26-10-06, from the SELinux Policy git_system manual. stan a secure daemon. 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