Current File : //proc/thread-self/root/kunden/usr/share/selinux/devel/html/guest.html |
<!-- Creator : groff version 1.22.4 -->
<!-- CreationDate: Thu Apr 10 20:00:00 2025 -->
<!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>
<p style="margin-left:11%; margin-top: 1em">If you want to
map the one Linux user (joe) to the SELinux user guest, you
would execute:</p>
<p style="margin-left:11%; margin-top: 1em"><b>$ semanage
login -a -s guest_u joe</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>1716</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>9080</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>88,750,4444</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>9080</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>88,750,4444</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
deny all system processes and Linux users to use bluetooth
wireless technology, you must turn on the deny_bluetooth
boolean. Disabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
deny_bluetooth 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. Disabled 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
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
allow httpd cgi support, you must turn on the
httpd_enable_cgi boolean. Enabled 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 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
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>
<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>alsa_home_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>/home/[^/]+/.asoundrc</p></td></tr>
</table>
<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="92%">
<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>