You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
4.2 KiB
112 lines
4.2 KiB
<!DOCTYPE html>
|
|
<html lang="fr" dir="ltr">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta charset="utf-8" />
|
|
<title>documentation:2.0:selinux</title><!-- //if:usedebianlibs
|
|
<link rel="stylesheet" type="text/css" href="/javascript/bootstrap/css/bootstrap.min.css" />
|
|
//elsif:useexternallibs
|
|
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></script>
|
|
//elsif:cssminified
|
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.min.css" />
|
|
//else --><!-- //endif -->
|
|
<meta name="generator" content="DokuWiki"/>
|
|
<meta name="robots" content="index,follow"/>
|
|
<meta name="keywords" content="documentation,2.0,selinux"/>
|
|
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
|
|
<link rel="start" href="selinux.html"/>
|
|
<link rel="contents" href="selinux.html" title="Sitemap"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/exe/css.php.t.bootstrap3.css"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.css" />
|
|
|
|
<script type="text/javascript">/*<![CDATA[*/var NS='documentation:2.0';var JSINFO = {"id":"documentation:2.0:selinux","namespace":"documentation:2.0"};
|
|
/*!]]>*/</script>
|
|
<script type="text/javascript" charset="utf-8" src="lib/exe/js.php.t.bootstrap3.js"></script><!-- //if:usedebianlibs
|
|
<script type="text/javascript" src="/javascript/jquery/jquery.min.js"></script>
|
|
//elsif:useexternallibs
|
|
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
|
|
//elsif:jsminified
|
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.min.js"></script>
|
|
//else -->
|
|
|
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.js"></script><!-- //endif --><!-- //if:usedebianlibs
|
|
<script type="text/javascript" src="/javascript/jquery-ui/jquery-ui.min.js"></script>
|
|
//elsif:useexternallibs
|
|
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
|
|
//elsif:jsminified
|
|
<script type="text/javascript" src="/static/bwr/jquery-ui/jquery-ui.min.js"></script>
|
|
//else -->
|
|
|
|
|
|
<script type="text/javascript" src="/static/bwr/jquery-ui/jquery-ui.js"></script><!-- //endif -->
|
|
|
|
</head>
|
|
<body>
|
|
<div class="dokuwiki export container"><!-- TOC START -->
|
|
|
|
<div id="dw__toc">
|
|
<h3 class="toggle">Table of Contents</h3>
|
|
<div>
|
|
|
|
<ul class="toc">
|
|
<li class="level1"><div class="li"><a href="#disk_cache_sessions_an_configuration">Disk cache (sessions an configuration)</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#ldap">LDAP</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#databases">Bases de données</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#memcache">Memcache</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#proxy_http">Proxy HTTP</a></div></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- TOC END -->
|
|
|
|
|
|
<h1 class="sectionedit1" id="selinux">SELinux</h1>
|
|
<div class="level1">
|
|
|
|
<p>
|
|
|
|
To make LemonLDAP::NG work with SELinux, you may need to set up some options.
|
|
|
|
</p>
|
|
|
|
</div><!-- EDIT1 SECTION "SELinux" [1-102] -->
|
|
|
|
<h2 class="sectionedit2" id="disk_cache_sessions_an_configuration">Disk cache (sessions an configuration)</h2>
|
|
<div class="level2">
|
|
<pre class="code">chcon -R -t httpd_sys_rw_content_t /tmp</pre>
|
|
|
|
<p>
|
|
|
|
To persist the rule:
|
|
|
|
</p>
|
|
<pre class="code">semanage fcontext -a -t http_sys_content_t /tmp</pre>
|
|
|
|
</div><!-- EDIT2 SECTION "Disk cache (sessions an configuration)" [103-291] -->
|
|
|
|
<h2 class="sectionedit3" id="ldap">LDAP</h2>
|
|
<div class="level2">
|
|
<pre class="code">setsebool -P httpd_can_connect_ldap 1</pre>
|
|
|
|
</div><!-- EDIT3 SECTION "LDAP" [292-361] -->
|
|
|
|
<h2 class="sectionedit4" id="databases">Bases de données</h2>
|
|
<div class="level2">
|
|
<pre class="code">setsebool -P httpd_can_network_connect_db 1</pre>
|
|
|
|
</div><!-- EDIT4 SECTION "Databases" [362-442] -->
|
|
|
|
<h2 class="sectionedit5" id="memcache">Memcache</h2>
|
|
<div class="level2">
|
|
<pre class="code">setsebool -P httpd_can_network_memcache 1</pre>
|
|
|
|
</div><!-- EDIT5 SECTION "Memcache" [443-520] -->
|
|
|
|
<h2 class="sectionedit6" id="proxy_http">Proxy HTTP</h2>
|
|
<div class="level2">
|
|
<pre class="code">setsebool -P httpd_can_network_relay 1</pre>
|
|
|
|
</div><!-- EDIT6 SECTION "Proxy HTTP" [521-] -->
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|