summaryrefslogtreecommitdiff
path: root/static/freebsd/man9/securelevel_gt.9 4.html
blob: f71286f07f0f5d99844e6bc8d51a49574f5c2fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<table class="head">
  <tr>
    <td class="head-ltitle">SECURELEVEL_GT(9)</td>
    <td class="head-vol">Kernel Developer's Manual</td>
    <td class="head-rtitle">SECURELEVEL_GT(9)</td>
  </tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">securelevel_gt</code>,
    <code class="Nm">securelevel_ge</code> &#x2014; <span class="Nd">test active
    securelevel</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="In">#include
    &lt;<a class="In">sys/types.h</a>&gt;</code>
  <br/>
  <code class="In">#include &lt;<a class="In">sys/proc.h</a>&gt;</code></p>
<p class="Pp"><var class="Ft">int</var>
  <br/>
  <code class="Fn">securelevel_gt</code>(<var class="Fa" style="white-space: nowrap;">struct
    ucred *cr</var>, <var class="Fa" style="white-space: nowrap;">int
    level</var>);</p>
<p class="Pp"><var class="Ft">int</var>
  <br/>
  <code class="Fn">securelevel_ge</code>(<var class="Fa" style="white-space: nowrap;">struct
    ucred *cr</var>, <var class="Fa" style="white-space: nowrap;">int
    level</var>);</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">These functions test the active security level against the given
    <var class="Fa">level</var>. If the calling credential
    <var class="Fa">cr</var> was imprisoned by the <a class="Xr">jail(2)</a>
    system call, and has a different security level set than the host
    environment, the security level with the highest value is used.</p>
<p class="Pp" id="securelevel_gt">The
    <a class="permalink" href="#securelevel_gt"><code class="Fn">securelevel_gt</code></a>()
    function will evaluate whether or not the active security level is greater
    than the supplied <var class="Fa">level</var>.</p>
<p class="Pp" id="securelevel_ge">The
    <a class="permalink" href="#securelevel_ge"><code class="Fn">securelevel_ge</code></a>()
    function will evaluate whether or not the active security level is greater
    than or equal to the supplied <var class="Fa">level</var>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
  VALUES</a></h1>
<p class="Pp">These functions return <code class="Er">EPERM</code> if condition
    evaluated to true, and 0 otherwise.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
  ALSO</a></h1>
<p class="Pp"><a class="Xr">securelevel(7)</a></p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">June 2, 2007</td>
    <td class="foot-os">FreeBSD 15.0</td>
  </tr>
</table>