'\" t .\" Title: register_security .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Security Framework .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "REGISTER_SECURITY" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Security Framework" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" register_security \- registers a security framework with the kernel .SH "SYNOPSIS" .HP \w'int\ register_security('u .BI "int register_security(struct\ security_operations\ *\ " "ops" ");" .SH "ARGUMENTS" .PP \fIops\fR .RS 4 a pointer to the struct security_options that is to be registered .RE .SH "DESCRIPTION" .PP This function allows a security module to register itself with the kernel security subsystem\&. Some rudimentary checking is done on the \fIops\fR value passed to this function\&. You\*(Aqll need to check first if your LSM is allowed to register its \fIops\fR by calling security_module_enable(\fIops\fR)\&. .PP If there is already a security module registered with the kernel, an error will be returned\&. Otherwise \fB0\fR is returned on success\&. .SH "COPYRIGHT" .br