|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/share/selinux/devel/html/ |
Upload File : |
<!-- Creator : groff version 1.22.2 -->
<!-- CreationDate: Mon Nov 16 16:51:12 2020 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
h1 { text-align: center }
</style>
<title>guest_selinux</title>
</head>
<body>
<h1 align="center">guest_selinux</h1>
<a href="#NAME">NAME</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#USER DESCRIPTION">USER DESCRIPTION</a><br>
<a href="#SUDO">SUDO</a><br>
<a href="#X WINDOWS LOGIN">X WINDOWS LOGIN</a><br>
<a href="#NETWORK">NETWORK</a><br>
<a href="#BOOLEANS">BOOLEANS</a><br>
<a href="#HOME_EXEC">HOME_EXEC</a><br>
<a href="#TRANSITIONS">TRANSITIONS</a><br>
<a href="#MANAGED FILES">MANAGED FILES</a><br>
<a href="#COMMANDS">COMMANDS</a><br>
<a href="#AUTHOR">AUTHOR</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<hr>
<h2>NAME
<a name="NAME"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">guest_u −
<b>Least privileged terminal user role.</b> - Security
Enhanced Linux Policy</p>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>guest_u</b>
is an SELinux User defined in the SELinux policy. SELinux
users have default roles, <b>guest_r</b>. The default role
has a default type, <b>guest_t</b>, associated with it.</p>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user will usually login to a system with a context that
looks like:</p>
<p style="margin-left:11%; margin-top: 1em"><b>guest_u:guest_r:guest_t:s0</b></p>
<p style="margin-left:11%; margin-top: 1em">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.</p>
<p style="margin-left:11%; margin-top: 1em">SELinux policy
uses the context to control the user’s access.</p>
<p style="margin-left:11%; margin-top: 1em">By default all
users are assigned to the SELinux user via the
<b>__default__</b> flag</p>
<p style="margin-left:11%; margin-top: 1em">On Targeted
policy systems the <b>__default__</b> user is assigned to
the <b>unconfined_u</b> SELinux user.</p>
<p style="margin-left:11%; margin-top: 1em">You can list
all Linux User to SELinux user mapping using:</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
login -l</b></p>
<p style="margin-left:11%; margin-top: 1em">If you wanted
to change the default user mapping to use the guest_u user,
you would execute:</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
login -m -s guest_u __default__</b></p>
<h2>USER DESCRIPTION
<a name="USER DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user guest_u is defined in policy as a unprivileged user.
SELinux prevents unprivileged users from doing
administration tasks without transitioning to a different
role.</p>
<h2>SUDO
<a name="SUDO"></a>
</h2>
<h2>X WINDOWS LOGIN
<a name="X WINDOWS LOGIN"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user guest_u is not able to X Windows login.</p>
<h2>NETWORK
<a name="NETWORK"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user guest_u is able to listen on the following tcp
ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
with out defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-61000</b></p>
<p style="margin-left:11%;">The SELinux user guest_u is
able to connect to the following tcp ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>8955</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>53</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>9080</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>88,750,4444</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
< 1024</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
with out defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-61000</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>111</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>389,636,3268,3269,7389</b></p>
<p style="margin-left:11%;">The SELinux user guest_u is
able to listen on the following udp ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
with out defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-61000</b></p>
<p style="margin-left:11%;">The SELinux user guest_u is
able to connect to the following tcp ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>8955</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>53</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>9080</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>88,750,4444</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
< 1024</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
with out defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-61000</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>111</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>389,636,3268,3269,7389</b></p>
<h2>BOOLEANS
<a name="BOOLEANS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">SELinux policy
is customizable based on least access required. guest policy
is extremely flexible and has several booleans that allow
you to manipulate the policy and run guest with the tightest
access possible.</p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow users to resolve user passwd entries directly from
ldap rather then using a sssd server, you must turn on the
authlogin_nsswitch_use_ldap boolean. Disabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
authlogin_nsswitch_use_ldap 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
deny user domains applications to map a memory region as
both executable and writable, this is dangerous and the
executable should be reported in bugzilla, you must turn on
the deny_execmem boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
deny_execmem 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
deny any process from ptracing or debugging any other
processes, you must turn on the deny_ptrace boolean. Enabled
by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
deny_ptrace 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow any process to mmap any file on system with attribute
file_type, you must turn on the domain_can_mmap_files
boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
domain_can_mmap_files 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow all domains write to kmsg_device, while kernel is
executed with systemd.log_target=kmsg parameter, you must
turn on the domain_can_write_kmsg boolean. Disabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
domain_can_write_kmsg 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow all domains to use other domains file descriptors, you
must turn on the domain_fd_use boolean. Enabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
domain_fd_use 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow all domains to have the kernel load modules, you must
turn on the domain_kernel_load_modules boolean. Disabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
domain_kernel_load_modules 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow all domains to execute in fips_mode, you must turn on
the fips_mode boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
fips_mode 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
enable reading of urandom for all domains, you must turn on
the global_ssp boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
global_ssp 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow httpd cgi support, you must turn on the
httpd_enable_cgi boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
httpd_enable_cgi 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
unify HTTPD handling of all content files, you must turn on
the httpd_unified boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
httpd_unified 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow confined applications to run with kerberos, you must
turn on the kerberos_enabled boolean. Enabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
kerberos_enabled 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow logging in and using the system from /dev/console, you
must turn on the login_console_enabled boolean. Enabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
login_console_enabled 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow system to run with NIS, you must turn on the
nis_enabled boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
nis_enabled 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow confined applications to use nscd shared memory, you
must turn on the nscd_use_shm boolean. Disabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
nscd_use_shm 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
disallow programs, such as newrole, from transitioning to
administrative user domains, you must turn on the
secure_mode boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
secure_mode 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow unconfined executables to make their stack executable.
This should never, ever be necessary. Probably indicates a
badly coded executable, but could indicate an attack. This
executable should be reported in bugzilla, you must turn on
the selinuxuser_execstack boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
selinuxuser_execstack 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow user to use ssh chroot environment, you must turn on
the selinuxuser_use_ssh_chroot boolean. Disabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
selinuxuser_use_ssh_chroot 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow ssh logins as sysadm_r:sysadm_t, you must turn on the
ssh_sysadm_login boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
ssh_sysadm_login 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
support NFS home directories, you must turn on the
use_nfs_home_dirs boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
use_nfs_home_dirs 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
support SAMBA home directories, you must turn on the
use_samba_home_dirs boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
use_samba_home_dirs 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow the graphical login program to login directly as
sysadm_r:sysadm_t, you must turn on the xdm_sysadm_login
boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
xdm_sysadm_login 1</b></p>
<h2>HOME_EXEC
<a name="HOME_EXEC"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user guest_u is able execute home content files.</p>
<h2>TRANSITIONS
<a name="TRANSITIONS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Three things
can happen when guest_t attempts to execute a program.</p>
<p style="margin-left:11%; margin-top: 1em"><b>1.</b>
SELinux Policy can deny guest_t from executing the
program.</p>
<p style="margin-left:11%; margin-top: 1em"><b>2.</b>
SELinux Policy can allow guest_t to execute the program in
the <br>
current user type.</p>
<p style="margin-left:22%; margin-top: 1em">Execute the
following to see the types that the SELinux user guest_t can
execute without transitioning:</p>
<p style="margin-left:22%; margin-top: 1em"><b>sesearch -A
-s guest_t -c file -p execute_no_trans</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>3.</b>
SELinux can allow guest_t to execute the program and
transition to a <br>
new type.</p>
<p style="margin-left:22%; margin-top: 1em">Execute the
following to see the types that the SELinux user guest_t can
execute and transition:</p>
<p style="margin-left:22%; margin-top: 1em"><b>$ sesearch
-A -s guest_t -c process -p transition</b></p>
<h2>MANAGED FILES
<a name="MANAGED FILES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
process type guest_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.</p>
<p style="margin-left:11%; margin-top: 1em"><b>anon_inodefs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>auth_cache_t</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="7%"></td>
<td width="85%">
<p>/var/cache/coolkey(/.*)?</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>cifs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>httpd_user_content_t</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/((www)|(web)|(public_html))(/.+)?</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>httpd_user_htaccess_t</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/((www)|(web)|(public_html))(/.*)?/.htaccess</p> </td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>httpd_user_ra_content_t</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/((www)|(web)|(public_html))(/.*)?/logs(/.*)?</p> </td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>httpd_user_rw_content_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>httpd_user_script_exec_t</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/((www)|(web)|(public_html))/cgi-bin(/.+)?</p> </td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>nfs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>user_home_type</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>all user home files</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>user_tmp_type</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>all user tmp files</p></td></tr>
</table>
<h2>COMMANDS
<a name="COMMANDS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
fcontext</b> can also be used to manipulate default file
context mappings.</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
permissive</b> can also be used to manipulate whether or not
a process type is permissive.</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
module</b> can also be used to enable/disable/install/remove
policy modules.</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
boolean</b> can also be used to manipulate the booleans</p>
<p style="margin-left:11%; margin-top: 1em"><b>system-config-selinux</b>
is a GUI tool available to customize SELinux policy
settings.</p>
<h2>AUTHOR
<a name="AUTHOR"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">This manual
page was auto-generated using <b>sepolicy manpage .</b></p>
<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">selinux(8),
guest(8), semanage(8), restorecon(8), chcon(1), sepolicy(8)
, setsebool(8)</p>
<hr>
</body>
</html>