summaryrefslogtreecommitdiffstats
path: root/include/linux/xattr.h
diff options
context:
space:
mode:
authorDavid P. Quigley <dpquigl@tycho.nsa.gov>2009-09-03 14:25:56 -0400
committerJames Morris <jmorris@namei.org>2009-09-10 10:11:22 +1000
commitb1ab7e4b2a88d3ac13771463be8f302ce1616cfc (patch)
treec08825120cb290a4307d36ee0bee806ad2aae83c /include/linux/xattr.h
parent733e5e4b4eb1bc1e27acbe092200154051171426 (diff)
downloadlinux-b1ab7e4b2a88d3ac13771463be8f302ce1616cfc.tar.gz
linux-b1ab7e4b2a88d3ac13771463be8f302ce1616cfc.tar.bz2
linux-b1ab7e4b2a88d3ac13771463be8f302ce1616cfc.zip
VFS: Factor out part of vfs_setxattr so it can be called from the SELinux hook for inode_setsecctx.
This factors out the part of the vfs_setxattr function that performs the setting of the xattr and its notification. This is needed so the SELinux implementation of inode_setsecctx can handle the setting of the xattr while maintaining the proper separation of layers. Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/xattr.h')
-rw-r--r--include/linux/xattr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index d131e352cfe1..5c84af8c5f6f 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -49,6 +49,7 @@ struct xattr_handler {
ssize_t xattr_getsecurity(struct inode *, const char *, void *, size_t);
ssize_t vfs_getxattr(struct dentry *, const char *, void *, size_t);
ssize_t vfs_listxattr(struct dentry *d, char *list, size_t size);
+int __vfs_setxattr_noperm(struct dentry *, const char *, const void *, size_t, int);
int vfs_setxattr(struct dentry *, const char *, const void *, size_t, int);
int vfs_removexattr(struct dentry *, const char *);