git_shell_selinux(8) - Linux man page

Name

git_shell_u - git_shell user role - Security Enhanced Linux Policy

Description

git_shell_u is an SELinux User defined in the SELinux policy. SELinux users have default roles, git_shell_r. The default role has a default type, git_shell_t, associated with it.

The SELinux user will usually login to a system with a context that looks like:

git_shell_u:git_shell_r:git_shell_t:s0-s0:c0.c1023

Linux users are automatically assigned an SELinux users at login. Login programs use the SELinux User to assign initial context to the user's shell.

SELinux policy uses the context to control the user's access.

By default all users are assigned to the SELinux user via the __default__ flag

On Targeted policy systems the __default__ user is assigned to the unconfined_u SELinux user.

You can list all Linux User to SELinux user mapping using:

semanage login -l

If you wanted to change the default user mapping to use the git_shell_u user, you would execute:

semanage login -m -s git_shell_u __default__

User Description

The SELinux user git_shell_u is defined in policy as a unprivileged user. SELinux prevents unprivileged users from doing administration tasks without transitioning to a different role.

Sudo

X Windows Login

The SELinux user git_shell_u is not able to X Windows login.

Network

Home_exec

The SELinux user git_shell_u is not able execute home content files.

Transitions

Three things can happen when git_shell_t attempts to execute a program.

1. SELinux Policy can deny git_shell_t from executing the program.

2. SELinux Policy can allow git_shell_t to execute the program in the current user type.

Execute the following to see the types that the SELinux user git_shell_t can execute without transitioning:

search -A -s

git_shell_t -c file -p execute_no_trans

3. SELinux can allow git_shell_t to execute the program and transition to a new type.

Execute the following to see the types that the SELinux user git_shell_t can execute and transition:

$ search -A -s git_shell_t -c process -p transition

Managed Files

The SELinux process type git_shell_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.

git_system_content_t

/srv/git(/.*)?

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

initrc_tmp_t

mnt_t

/mnt(/[^/]*)

/mnt(/[^/]*)?

/rhev(/[^/]*)?

/media(/[^/]*)

/media(/[^/]*)?

/etc/rhgb(/.*)?

/media/.hal-.*

/net

/afs

/misc

/rhev

tmp_t

/tmp

/usr/tmp

/var/tmp

/var/tmp/vi.recover

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.

system-config-selinux is a GUI tool available to customize SELinux policy settings.

Author

This manual page was auto-generated using sepolicy manpage by mgrepl.

See Also

selinux(8), git_shell(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , gitosis_selinux(8)