FreeBSD Bugzilla – Attachment 39549 Details for
Bug 62331
Documentation for kernel functions securelevel_gt and securelevel_ge
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 3.24 KB, created by
Christian S. Peron
on 2004-02-04 05:10:17 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Christian S. Peron
Created:
2004-02-04 05:10:17 UTC
Size:
3.24 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># /usr/src/share/man/man9/securelevel_gt.9 ># >echo x - /usr/src/share/man/man9/securelevel_gt.9 >sed 's/^X//' >/usr/src/share/man/man9/securelevel_gt.9 << 'END-of-/usr/src/share/man/man9/securelevel_gt.9' >X.\" >X.\" Copyright (c) 2000, Christian S.J. Peron <maneo@bsdpro.com> >X.\" All rights reserved. >X.\" >X.\" Redistribution and use in source and binary forms, with or without >X.\" modification, are permitted provided that the following conditions >X.\" are met: >X.\" 1. Redistributions of source code must retain the above copyright >X.\" notice, this list of conditions and the following disclaimer. >X.\" 2. Redistributions in binary form must reproduce the above copyright >X.\" notice, this list of conditions and the following disclaimer in the >X.\" documentation and/or other materials provided with the distribution. >X.\" 3. The name of the author may not be used to endorse or promote products >X.\" derived from this software without specific prior written permission. >X.\" >X.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND >X.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >X.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE >X.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE >X.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL >X.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS >X.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >X.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT >X.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY >X.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF >X.\" SUCH DAMAGE. >X.\" >X.Dd February 3, 2003 >X.Dt SECURELEVEL_GT 9 >X.Os >X.Sh NAME >X.Nm securelevel_gt , >X.Nm securelevel_ge >X.Nd test active securelevel >X.Sh SYNOPSIS >X.In sys/types.h >X.In sys/proc.h >X.Ft int >X.Fo securelevel_gt >X.Fa "struct ucred *cr" >X.Fa "int level" >X.Fc >X.Ft int >X.Fo securelevel_ge >X.Fa "struct ucred *cr" >X.Fa "int level" >X.Fc >X.Sh DESCRIPTION >XThese functions test the active security level against the given >X.Fa level . >XIf the calling credential >X.Fa cr >Xwas imprisoned by the jail(2) system call, and has a >Xdifferent security level set than the host environment, >Xthe security level with the highest value is used. >X.Pp >X.Nm securelevel_gt >Xwill evaluate weather or not the active security >Xlevel is greater than the supplied >X.Fa level . >XIf the active security level is greater than >X.Fa level , >XEPERM is returned. >X.Pp >X.Nm securelevel_ge >Xwill evaluate weather or not the active security >Xlevel is greater than or equal to the supplied >X.Fa level . >XIf the active security level is greater than or equal to >X.Fa level , >XEPERM is returned. >X.Sh "RETURN VALUES" >XThe logic is inverted, these functions return >XEPERM on "success" and 0 on "failure". >X.Sh "SEE ALSO" >X.Xr init 8 , >X.Xr sysctl 8 >X >END-of-/usr/src/share/man/man9/securelevel_gt.9 >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 62331
:
39548
| 39549