---
name: "unregister_security"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/unregister_security"
---

# unregister\_security(9)

unregisters a security framework with the kernel

## NAME

unregister\_security - unregisters a security framework with the kernel

## SYNOPSIS

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

## ARGUMENTS

*ops*

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

## DESCRIPTION

This function removes a struct security\_operations variable that had previously been registered with a successful call to **register\_security**.

If *ops* does not match the valued previously passed to **register\_security** an error is returned. Otherwise the default security options is set to the the dummy\_security\_ops structure, and 0 is returned.

## COPYRIGHT
