diff options
author | Greg KH <greg@kroah.com> | 2005-07-07 17:37:53 -0400 |
---|---|---|
committer | Chris Wright <chrisw@osdl.org> | 2005-07-08 21:48:41 -0400 |
commit | b67dbf9d4c1987c370fd18fdc4cf9d8aaea604c2 (patch) | |
tree | 76c8bf2d44a9e8b3fb8df8dedf950bbb78d340ae /include | |
parent | 043d051615aa5da09a7e44f1edbb69798458e067 (diff) |
[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')
-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 b42095a68b1c..cd3d8a9f951e 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1983,6 +1983,11 @@ extern int register_security (struct security_operations *ops); | |||
1983 | extern int unregister_security (struct security_operations *ops); | 1983 | extern int unregister_security (struct security_operations *ops); |
1984 | extern int mod_reg_security (const char *name, struct security_operations *ops); | 1984 | extern int mod_reg_security (const char *name, struct security_operations *ops); |
1985 | extern int mod_unreg_security (const char *name, struct security_operations *ops); | 1985 | extern int mod_unreg_security (const char *name, struct security_operations *ops); |
1986 | extern struct dentry *securityfs_create_file(const char *name, mode_t mode, | ||
1987 | struct dentry *parent, void *data, | ||
1988 | struct file_operations *fops); | ||
1989 | extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent); | ||
1990 | extern void securityfs_remove(struct dentry *dentry); | ||
1986 | 1991 | ||
1987 | 1992 | ||
1988 | #else /* CONFIG_SECURITY */ | 1993 | #else /* CONFIG_SECURITY */ |