File: //usr/share/doc/selinux-policy/html/admin_su.html
<html>
<head>
<title>
Security Enhanced Linux Reference Policy
</title>
<style type="text/css" media="all">@import "style.css";</style>
</head>
<body>
<div id="Header">Security Enhanced Linux Reference Policy</div>
<div id='Menu'>
<a href="admin.html">+
admin</a></br/>
<div id='subitem'>
- <a href='admin_bootloader.html'>
bootloader</a><br/>
- <a href='admin_consoletype.html'>
consoletype</a><br/>
- <a href='admin_dmesg.html'>
dmesg</a><br/>
- <a href='admin_netutils.html'>
netutils</a><br/>
- <a href='admin_su.html'>
su</a><br/>
- <a href='admin_sudo.html'>
sudo</a><br/>
- <a href='admin_usermanage.html'>
usermanage</a><br/>
</div>
<a href="apps.html">+
apps</a></br/>
<div id='subitem'>
</div>
<a href="contrib.html">+
contrib</a></br/>
<div id='subitem'>
</div>
<a href="kernel.html">+
kernel</a></br/>
<div id='subitem'>
</div>
<a href="roles.html">+
roles</a></br/>
<div id='subitem'>
</div>
<a href="services.html">+
services</a></br/>
<div id='subitem'>
</div>
<a href="system.html">+
system</a></br/>
<div id='subitem'>
</div>
<br/><p/>
<a href="global_booleans.html">* Global Booleans </a>
<br/><p/>
<a href="global_tunables.html">* Global Tunables </a>
<p/><br/><p/>
<a href="index.html">* Layer Index</a>
<br/><p/>
<a href="booleans.html">* Boolean Index</a>
<br/><p/>
<a href="tunables.html">* Tunable Index</a>
<br/><p/>
<a href="interfaces.html">* Interface Index</a>
<br/><p/>
<a href="templates.html">* Template Index</a>
</div>
<div id="Content">
<a name="top":></a>
<h1>Layer: admin</h1><p/>
<h2>Module: su</h2><p/>
<a href=#interfaces>Interfaces</a>
<a href=#templates>Templates</a>
<h3>Description:</h3>
<p><p>Run shells with substitute user and group</p></p>
<hr>
<a name="interfaces"></a>
<h3>Interfaces: </h3>
<a name="link_su_exec"></a>
<div id="interface">
<div id="codeblock">
<b>su_exec</b>(
domain
)<br>
</div>
<div id="description">
<h5>Summary</h5>
<p>
Execute su in the caller domain.
</p>
<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="65%">
<tr><th >Parameter:</th><th >Description:</th></tr>
<tr><td>
domain
</td><td>
<p>
Domain allowed access.
</p>
</td></tr>
</table>
</div>
</div>
<a href=#top>Return</a>
<a name="templates"></a>
<h3>Templates: </h3>
<a name="link_su_restricted_domain_template"></a>
<div id="template">
<div id="codeblock">
<b>su_restricted_domain_template</b>(
userdomain_prefix
,
user_domain
,
user_role
)<br>
</div>
<div id="description">
<h5>Summary</h5>
<p>
Restricted su domain template.
</p>
<h5>Description</h5>
<p>
</p><p>
This template creates a derived domain which is allowed
to change the linux user id, to run shells as a different
user.
</p><p>
</p>
<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="65%">
<tr><th >Parameter:</th><th >Description:</th></tr>
<tr><td>
userdomain_prefix
</td><td>
<p>
The prefix of the user domain (e.g., user
is the prefix for user_t).
</p>
</td></tr>
<tr><td>
user_domain
</td><td>
<p>
The type of the user domain.
</p>
</td></tr>
<tr><td>
user_role
</td><td>
<p>
The role associated with the user domain.
</p>
</td></tr>
</table>
</div>
</div>
<a name="link_su_role_template"></a>
<div id="template">
<div id="codeblock">
<b>su_role_template</b>(
role_prefix
,
user_role
,
user_domain
)<br>
</div>
<div id="description">
<h5>Summary</h5>
<p>
The role template for the su module.
</p>
<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="65%">
<tr><th >Parameter:</th><th >Description:</th></tr>
<tr><td>
role_prefix
</td><td>
<p>
The prefix of the user role (e.g., user
is the prefix for user_r).
</p>
</td></tr>
<tr><td>
user_role
</td><td>
<p>
The role associated with the user domain.
</p>
</td></tr>
<tr><td>
user_domain
</td><td>
<p>
The type of the user domain.
</p>
</td></tr>
</table>
</div>
</div>
<a href=#top>Return</a>
</div>
</body>
</html>