diff options
author | Greg KH <greg@kroah.com> | 2005-07-07 14:37:53 -0700 |
---|---|---|
committer | Chris Wright <chrisw@osdl.org> | 2005-07-08 18:48:41 -0700 |
commit | b67dbf9d4c1987c370fd18fdc4cf9d8aaea604c2 (patch) | |
tree | 76c8bf2d44a9e8b3fb8df8dedf950bbb78d340ae /include/linux/security.h | |
parent | 043d051615aa5da09a7e44f1edbb69798458e067 (diff) | |
download | op-kernel-dev-b67dbf9d4c1987c370fd18fdc4cf9d8aaea604c2.zip op-kernel-dev-b67dbf9d4c1987c370fd18fdc4cf9d8aaea604c2.tar.gz |
[PATCH] add securityfs for all LSMs to use
Here's a small patch against 2.6.13-rc2 that adds securityfs, a virtual
fs that all LSMs can use instead of creating their own. The fs should
be mounted at /sys/kernel/security, and the fs creates that mount point.
This will make the LSB people happy that we aren't creating a new
/my_lsm_fs directory in the root for every different LSM.
It has changed a bit since the last version, thanks to comments from
Mike Waychison.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index b42095a..cd3d8a9 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -1983,6 +1983,11 @@ extern int register_security (struct security_operations *ops); extern int unregister_security (struct security_operations *ops); extern int mod_reg_security (const char *name, struct security_operations *ops); extern int mod_unreg_security (const char *name, struct security_operations *ops); +extern struct dentry *securityfs_create_file(const char *name, mode_t mode, + struct dentry *parent, void *data, + struct file_operations *fops); +extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent); +extern void securityfs_remove(struct dentry *dentry); #else /* CONFIG_SECURITY */ |