Blob Blame History Raw
<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">+&nbsp;
		admin</a></br/>
		<div id='subitem'>
		
		</div>
	
		<a href="kernel.html">+&nbsp;
		kernel</a></br/>
		<div id='subitem'>
		
		</div>
	
		<a href="services.html">+&nbsp;
		services</a></br/>
		<div id='subitem'>
		
		</div>
	
		<a href="system.html">+&nbsp;
		system</a></br/>
		<div id='subitem'>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_authlogin.html'>
			authlogin</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_clock.html'>
			clock</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_corecommands.html'>
			corecommands</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_domain.html'>
			domain</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_files.html'>
			files</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_getty.html'>
			getty</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_hostname.html'>
			hostname</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_hotplug.html'>
			hotplug</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_init.html'>
			init</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_iptables.html'>
			iptables</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_libraries.html'>
			libraries</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_locallogin.html'>
			locallogin</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_logging.html'>
			logging</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_lvm.html'>
			lvm</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_miscfiles.html'>
			miscfiles</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_modutils.html'>
			modutils</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_mount.html'>
			mount</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_selinuxutil.html'>
			selinuxutil</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_sysnetwork.html'>
			sysnetwork</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_udev.html'>
			udev</a><br/>
		
			&nbsp;&nbsp;&nbsp;-&nbsp;<a href='system_userdomain.html'>
			userdomain</a><br/>
		
		</div>
	
	<br/><p/>
	<a href="interfaces.html">*&nbsp;Interface Index</a>
</div>

<div id="Content">
<h1>Layer: system</h1><p/>
<h2>Module: files</h2><p/>
<h3>Description:</h3>
 
<p>
</p><p>
	This module contains basic filesystem types and interfaces. This
includes:
</p><ul><li>The concept of different file types including basic
	files, mount points, tmp files, etc.</li><li>Access to groups of files and all files.</li><li>Types and interfaces for the basic filesystem layout
	(/, /etc, /tmp, /usr, etc.).</li></ul><p>
</p>

<h3>Interfaces: </h3>

<div id="interface">


<div id="codeblock">

<b>files_create_root</b>(
	
		
		
		
		domain
		
	
		
			,
		
		
		
			[
		
		private type
		
			]
		
	
		
			,
		
		
		
			[
		
		object
		
			]
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Create an object in the root directory, with a private
	type.  If no object class is specified, the
	default is file.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

<tr><td>
private type
</td><td>

	The type of the object to be created.  If no type
	is specified, the type of the root directory will
	be used.

</td><td>
yes
</td></tr>

<tr><td>
object
</td><td>

	The object class of the object being created.  If
	no class is specified, file will be used.

</td><td>
yes
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_delete_generic_etc_files</b>(
	
		
		
		
		domain
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Delete system configuration files in /etc.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_dontaudit_ioctl_all_pids</b>(
	
		
		
		
		domain
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Do not audit attempts to ioctl daemon runtime data files.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_dontaudit_write_all_pids</b>(
	
		
		
		
		domain
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Do not audit attempts to write to daemon runtime data files.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_exec_usr_files</b>(
	
		
		
		
		domain
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Execute programs in /usr/src in the caller domain.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_list_home</b>(
	
		
		
		
		domain
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Get listing home home directories.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the process performing this action.

</td><td>
No
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_manage_all_files</b>(
	
		
		
		
		domain
		
	
		
			,
		
		
		
			[
		
		exception_types
		
			]
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Manage all files on the filesystem, except
	the listed exceptions.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the domain perfoming this action.

</td><td>
No
</td></tr>

<tr><td>
exception_types
</td><td>

	The types to be excluded.  Each type or attribute
	must be negated by the caller.

</td><td>
yes
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_relabel_all_files</b>(
	
		
		
		
		domain
		
	
		
			,
		
		
		
			[
		
		exception_types
		
			]
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Relabel all files on the filesystem, except
	the listed exceptions.
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
domain
</td><td>

	The type of the domain perfoming this action.

</td><td>
No
</td></tr>

<tr><td>
exception_types
</td><td>

	The types to be excluded.  Each type or attribute
	must be negated by the caller.

</td><td>
yes
</td></tr>

</table>
</div>
</div>

<div id="interface">


<div id="codeblock">

<b>files_tmpfs_file</b>(
	
		
		
		
		type
		
	
	)<br>
</div>
<div id="description">


<h5>Description</h5>
<p>
	Transform the type into a file, for use on a
	virtual memory filesystem (tmpfs).
</p>

<h5>Parameters</h5>
<table border="1" cellspacing="0" cellpadding="3" width="80%">
<tr><th >Parameter:</td><th >Description:</td><th >Optional:</td></tr>

<tr><td>
type
</td><td>

	The type to be transformed.

</td><td>
No
</td></tr>

</table>
</div>
</div>



</div>
</body>
</html>