---
name: "mod_reg_security"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/mod_reg_security"
---

# mod\_reg\_security(9)

allows security modules to be stacked

## NAME

mod\_reg\_security - allows security modules to be stacked

## SYNOPSIS

**int mod\_reg\_security(const char \*** *name***, struct security\_operations \*** *ops***);**

## ARGUMENTS

*name*

a pointer to a string with the name of the security\_options to be registered

*ops*

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

## DESCRIPTION

This function allows security modules to be stacked if the currently loaded security module allows this to happen. It passes the *name* and *ops* to the register\_security function of the currently loaded security module.

The return value depends on the currently loaded security module, with 0 as success.

## COPYRIGHT
