Current File : //proc/self/root/kunden/proc/thread-self/root/usr/share/selinux/devel/html/xguest.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>xguest_selinux</title>
</head>
<body>
<h1 align="center">xguest_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">xguest_u
− <b>Least privileged xwindows user role.</b> -
Security Enhanced Linux Policy</p>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>xguest_u</b>
is an SELinux User defined in the SELinux policy. SELinux
users have default roles, <b>xguest_r</b>. The default role
has a default type, <b>xguest_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>xguest_u:xguest_r:xguest_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 xguest_u user,
you would execute:</p>
<p style="margin-left:11%; margin-top: 1em"><b>semanage
login -m -s xguest_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 xguest, you
would execute:</p>
<p style="margin-left:11%; margin-top: 1em"><b>$ semanage
login -a -s xguest_u joe</b></p>
<h2>USER DESCRIPTION
<a name="USER DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user xguest_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 xguest_u is able to X Windows login.</p>
<h2>NETWORK
<a name="NETWORK"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The SELinux
user xguest_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 xguest_u is
able to connect to the following tcp <br>
ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>53,853</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8955</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>4713</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>4331,5001</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>80,81,443,488,8008,8009,8443,9000</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8080,8118,8123,10001-10010</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>3128,3401,4827</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>843,1935</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>21,989,990</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>631,8610-8614</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-60999</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
without defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8000,9433,16001</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8036</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8081</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:11%;">The SELinux user xguest_u is
able to connect to the following tcp <br>
ports.</p>
<p style="margin-left:22%; margin-top: 1em"><b>53,853</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8955</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>4713</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>4331,5001</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>80,81,443,488,8008,8009,8443,9000</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8080,8118,8123,10001-10010</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>3128,3401,4827</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>843,1935</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>21,989,990</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>631,8610-8614</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>32768-60999</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>all ports
without defined types</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8000,9433,16001</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8036</b></p>
<p style="margin-left:22%; margin-top: 1em"><b>8081</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>
<h2>BOOLEANS
<a name="BOOLEANS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">SELinux policy
is customizable based on least access required. xguest
policy is extremely flexible and has several booleans that
allow you to manipulate the policy and run xguest with the
tightest access possible.</p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow xguest users to configure Network Manager and connect
to apache ports, you must turn on the xguest_connect_network
boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
xguest_connect_network 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow xguest users to mount removable media, you must turn
on the xguest_mount_media boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
xguest_mount_media 1</b></p>
<p style="margin-left:11%; margin-top: 1em">If you want to
allow xguest to use blue tooth devices, you must turn on the
xguest_use_bluetooth boolean. Enabled by default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
xguest_use_bluetooth 1</b></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
deny any process from ptracing or debugging any other
processes, you must turn on the deny_ptrace boolean.
Disabled 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 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 use nscd shared memory, you
must turn on the nscd_use_shm boolean. Enabled 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
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 r/w files on filesystems that do not have
extended attributes (FAT, CDROM, FLOPPY), you must turn on
the selinuxuser_rw_noexattrfile boolean. Enabled by
default.</p>
<p style="margin-left:11%; margin-top: 1em"><b>setsebool -P
selinuxuser_rw_noexattrfile 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 xguest_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 xguest_t attempts to execute a program.</p>
<p style="margin-left:11%; margin-top: 1em"><b>1.</b>
SELinux Policy can deny xguest_t from executing the
program.</p>
<p style="margin-left:11%; margin-top: 1em"><b>2.</b>
SELinux Policy can allow xguest_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 xguest_t
can execute without transitioning:</p>
<p style="margin-left:22%; margin-top: 1em"><b>sesearch -A
-s xguest_t -c file -p execute_no_trans</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>3.</b>
SELinux can allow xguest_t to execute the program and
transition to <br>
a new type.</p>
<p style="margin-left:22%; margin-top: 1em">Execute the
following to see the types that the SELinux user xguest_t
can execute and transition:</p>
<p style="margin-left:22%; margin-top: 1em"><b>$ sesearch
-A -s xguest_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 xguest_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>chrome_sandbox_tmpfs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>gconf_tmp_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>/tmp/gconfd-[^/]+/.*</p></td></tr>
</table>
<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>noxattrfs</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 files on file systems which do not support extended
attributes</p> </td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>pulseaudio_tmpfs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>pulseaudio_tmpfsfile</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>session_dbusd_tmp_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/run/user/[0-9]+/bus</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/run/user/[0-9]+/dbus(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/run/user/[0-9]+/dbus-1(/.*)?</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>usbfs_t</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>user_fonts_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>/root/.fontconfig(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/root/.fonts/auto(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/root/.fonts.cache-.*</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/root/.cache/fontconfig(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/.fontconfig(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/.fonts/auto(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/.fonts.cache-.*</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/.cache/fontconfig(/.*)?</p></td></tr>
</table>
<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_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>/tmp/libdnf..+</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/dev/shm/mono.*</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/run/user/[^/]+</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/tmp/.ICE-unix(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/tmp/.X11-unix(/.*)?</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/dev/shm/pulse-shm.*</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/tmp/.X0-lock</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/run/user</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/tmp/hsperfdata_root</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/tmp/hsperfdata_root</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/tmp</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/home/[^/]+/.tmp</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/var/run/user/[0-9]+</p></td></tr>
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">
<p>/tmp/gconfd-[^/]+</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>
<p style="margin-left:11%; margin-top: 1em"><b>xserver_tmpfs_t</b></p>
<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),
xguest(8), semanage(8), restorecon(8), chcon(1),
sepolicy(8), setsebool(8), xguest_dbusd_selinux(8),
xguest_dbusd_selinux(8), xguest_gkeyringd_selinux(8),
xguest_gkeyringd_selinux(8)</p>
<hr>
</body>
</html>