---
name: "securityfs_remove"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/securityfs_remove"
---

# securityfs\_remove(9)

removes a file or directory from the securityfs filesystem

## NAME

securityfs\_remove - removes a file or directory from the securityfs filesystem

## SYNOPSIS

**void securityfs\_remove(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

a pointer to a the dentry of the file or directory to be removed.

## DESCRIPTION

This function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like **securityfs\_create\_file** or variants thereof.)

This function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.

## COPYRIGHT
