---
name: "register_security"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/register_security"
---

# register\_security(9)

registers a security framework with the kernel

## NAME

register\_security - registers a security framework with the kernel

## SYNOPSIS

**int register\_security(struct security\_operations \*** *ops***);**

## ARGUMENTS

*ops*

a pointer to the struct security\_options that is to be registered

## DESCRIPTION

This function allows a security module to register itself with the kernel security subsystem. Some rudimentary checking is done on the *ops* value passed to this function. You'll need to check first if your LSM is allowed to register its *ops* by calling security\_module\_enable(*ops*).

If there is already a security module registered with the kernel, an error will be returned. Otherwise **0** is returned on success.

## COPYRIGHT
