<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SEModules — Bcfg2 1.3.0 documentation</title> <link rel="stylesheet" href="../../../_static/default.css" type="text/css" /> <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../../', VERSION: '1.3.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../../_static/jquery.js"></script> <script type="text/javascript" src="../../../_static/underscore.js"></script> <script type="text/javascript" src="../../../_static/doctools.js"></script> <script type="text/javascript" src="../../../_static/sidebar.js"></script> <link rel="shortcut icon" href="../../../_static/favicon.ico"/> <link rel="top" title="Bcfg2 1.3.0 documentation" href="../../../index.html" /> <link rel="up" title="Plugins" href="../index.html" /> <link rel="next" title="SSHbase" href="sshbase.html" /> <link rel="prev" title="Rules" href="rules.html" /> <link rel="stylesheet" href="../../../_static/bcfg2.css" type=""/> </head> <body> <div style="text-align: left; padding: 10px 10px 15px 15px"> <a href="../../../index.html"><img src="../../../_static/bcfg2_logo.png" border="0" alt="sampledoc"/></a> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="sshbase.html" title="SSHbase" accesskey="N">next</a> |</li> <li class="right" > <a href="rules.html" title="Rules" accesskey="P">previous</a> |</li> <li><a href="../../../index.html">home</a> | </li> <!--<li><a href="../../../search.html">search</a> | </li>--> <li><a href="../../../help/index.html">help</a> | </li> <li><a href="../../../contents.html">documentation </a> »</li> <li><a href="../../../contents.html" >Bcfg2 documentation 1.3.0</a> »</li> <li><a href="../../index.html" >The Bcfg2 Server</a> »</li> <li><a href="../index.html" accesskey="U">Plugins</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="semodules"> <span id="server-plugins-generators-semodules"></span><h1>SEModules<a class="headerlink" href="#semodules" title="Permalink to this headline">¶</a></h1> <p class="versionadded"> <span class="versionmodified">New in version 1.3.0.</span></p> <span class="target" id="module-Bcfg2.Server.Plugins.SEModules"></span><p>The SEModules plugin handles SELinux module entries. It supports group- and host-specific module versions, and enabling/disabling modules.</p> <p>You can use <tt class="docutils literal"><span class="pre">tools/selinux_baseline.py</span></tt> to create a baseline of all of your installed modules.</p> <p>See <a class="reference internal" href="../../selinux.html#server-selinux"><em>SELinux</em></a> for more information.</p> <div class="section" id="usage"> <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2> <p>To use the SEModules plugin, first do <tt class="docutils literal"><span class="pre">mkdir</span> <span class="pre">/var/lib/bcfg2/SEModules</span></tt>. Add <tt class="docutils literal"><span class="pre">SEModules</span></tt> to your <tt class="docutils literal"><span class="pre">plugins</span></tt> line in <tt class="docutils literal"><span class="pre">/etc/bcfg2.conf</span></tt> and restart bcfg2-server.</p> <p>The SEModules directory contains modules in a layout similar to the Cfg plugin: at the top level, SEModules should contain directories named after the modules you want to install, and each of those directories can contain a global module, plus any number of group- and host-specific modules. For instance:</p> <div class="highlight-python"><pre>$ ls -F SEModules foo.pp/ bar.pp/ $ ls SEModules/foo.pp/ foo.pp foo.pp.G50_server foo.pp.H_baz.example.com</pre> </div> <p>For more information on this directory layout, see <a class="reference internal" href="cfg.html#server-plugins-generators-cfg"><em>Cfg</em></a>.</p> </div> <div class="section" id="entries"> <h2>Entries<a class="headerlink" href="#entries" title="Permalink to this headline">¶</a></h2> <p>SEModules handles <tt class="docutils literal"><span class="pre"><SEModule></span></tt> entries. For instance:</p> <div class="highlight-xml"><div class="highlight"><pre><span class="nt"><Bundle</span> <span class="na">name=</span><span class="s">"foo"</span><span class="nt">></span> <span class="nt"><SEModule</span> <span class="na">name=</span><span class="s">"foo.pp"</span><span class="nt">/></span> <span class="nt"></Bundle></span> </pre></div> </div> <p>The <tt class="docutils literal"><span class="pre">.pp</span></tt> extension is optional.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">If you use a <tt class="docutils literal"><span class="pre">BoundSEModule</span></tt> tag, you must <em>not</em> include the <tt class="docutils literal"><span class="pre">.pp</span></tt> extension. This is not recommend, though.</p> </div> <p>You can also install a disabled module:</p> <div class="highlight-xml"><div class="highlight"><pre><span class="nt"><SEModule</span> <span class="na">name=</span><span class="s">"foo"</span> <span class="na">disabled=</span><span class="s">"true"</span><span class="nt">/></span> </pre></div> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../../../index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">SEModules</a><ul> <li><a class="reference internal" href="#usage">Usage</a></li> <li><a class="reference internal" href="#entries">Entries</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="rules.html" title="previous chapter">Rules</a></p> <h4>Next topic</h4> <p class="topless"><a href="sshbase.html" title="next chapter">SSHbase</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../../_sources/server/plugins/generators/semodules.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../../../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="sshbase.html" title="SSHbase" >next</a> |</li> <li class="right" > <a href="rules.html" title="Rules" >previous</a> |</li> <li><a href="../../../index.html">home</a> | </li> <!--<li><a href="../../../search.html">search</a> | </li>--> <li><a href="../../../help/index.html">help</a> | </li> <li><a href="../../../contents.html">documentation </a> »</li> <li><a href="../../../contents.html" >Bcfg2 documentation 1.3.0</a> »</li> <li><a href="../../index.html" >The Bcfg2 Server</a> »</li> <li><a href="../index.html" >Plugins</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2013, Narayan Desai. Last updated on Mar 20, 2013. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>