1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>security_module_enable</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="security.html" title="Chapter&#160;11.&#160;Security Framework"><link rel="prev" href="API-security-init.html" title="security_init"><link rel="next" href="API-register-security.html" title="register_security"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">security_module_enable</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-security-init.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;11.&#160;Security Framework</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-register-security.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-security-module-enable"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>security_module_enable &#8212; 
2     Load given security module on boot ?
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">security_module_enable </b>(</code></td><td>struct security_operations * <var class="pdparam">ops</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1127420012"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ops</code></em></span></dt><dd><p>
4     a pointer to the struct security_operations that is to be checked.
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1127421660"></a><h2>Description</h2><p>
6   Each LSM must pass this method before registering its own operations
7   to avoid security registration races. This method may also be used
8   to check if your LSM is currently loaded during kernel initialization.
9</p></div><div class="refsect1"><a name="idp1127422476"></a><h2>Return true if</h2><p>
10   -The passed LSM is the one chosen by user at boot time,
11   -or the passed LSM is configured as the default and the user did not
12   choose an alternate LSM at boot time.
13   Otherwise, return false.
14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-security-init.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="security.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-register-security.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">security_init</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">register_security</span></td></tr></table></div></body></html>
15