aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c34
1 files changed, 20 insertions, 14 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 0e5ff69455c7..ab84c4d15148 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -6249,9 +6249,10 @@ nfs4_release_lockowner(struct nfs_server *server, struct nfs4_lock_state *lsp)
6249 6249
6250#define XATTR_NAME_NFSV4_ACL "system.nfs4_acl" 6250#define XATTR_NAME_NFSV4_ACL "system.nfs4_acl"
6251 6251
6252static int nfs4_xattr_set_nfs4_acl(struct dentry *dentry, const char *key, 6252static int nfs4_xattr_set_nfs4_acl(const struct xattr_handler *handler,
6253 struct dentry *dentry, const char *key,
6253 const void *buf, size_t buflen, 6254 const void *buf, size_t buflen,
6254 int flags, int type) 6255 int flags)
6255{ 6256{
6256 if (strcmp(key, "") != 0) 6257 if (strcmp(key, "") != 0)
6257 return -EINVAL; 6258 return -EINVAL;
@@ -6259,8 +6260,9 @@ static int nfs4_xattr_set_nfs4_acl(struct dentry *dentry, const char *key,
6259 return nfs4_proc_set_acl(d_inode(dentry), buf, buflen); 6260 return nfs4_proc_set_acl(d_inode(dentry), buf, buflen);
6260} 6261}
6261 6262
6262static int nfs4_xattr_get_nfs4_acl(struct dentry *dentry, const char *key, 6263static int nfs4_xattr_get_nfs4_acl(const struct xattr_handler *handler,
6263 void *buf, size_t buflen, int type) 6264 struct dentry *dentry, const char *key,
6265 void *buf, size_t buflen)
6264{ 6266{
6265 if (strcmp(key, "") != 0) 6267 if (strcmp(key, "") != 0)
6266 return -EINVAL; 6268 return -EINVAL;
@@ -6268,9 +6270,10 @@ static int nfs4_xattr_get_nfs4_acl(struct dentry *dentry, const char *key,
6268 return nfs4_proc_get_acl(d_inode(dentry), buf, buflen); 6270 return nfs4_proc_get_acl(d_inode(dentry), buf, buflen);
6269} 6271}
6270 6272
6271static size_t nfs4_xattr_list_nfs4_acl(struct dentry *dentry, char *list, 6273static size_t nfs4_xattr_list_nfs4_acl(const struct xattr_handler *handler,
6274 struct dentry *dentry, char *list,
6272 size_t list_len, const char *name, 6275 size_t list_len, const char *name,
6273 size_t name_len, int type) 6276 size_t name_len)
6274{ 6277{
6275 size_t len = sizeof(XATTR_NAME_NFSV4_ACL); 6278 size_t len = sizeof(XATTR_NAME_NFSV4_ACL);
6276 6279
@@ -6288,9 +6291,10 @@ static inline int nfs4_server_supports_labels(struct nfs_server *server)
6288 return server->caps & NFS_CAP_SECURITY_LABEL; 6291 return server->caps & NFS_CAP_SECURITY_LABEL;
6289} 6292}
6290 6293
6291static int nfs4_xattr_set_nfs4_label(struct dentry *dentry, const char *key, 6294static int nfs4_xattr_set_nfs4_label(const struct xattr_handler *handler,
6292 const void *buf, size_t buflen, 6295 struct dentry *dentry, const char *key,
6293 int flags, int type) 6296 const void *buf, size_t buflen,
6297 int flags)
6294{ 6298{
6295 if (security_ismaclabel(key)) 6299 if (security_ismaclabel(key))
6296 return nfs4_set_security_label(dentry, buf, buflen); 6300 return nfs4_set_security_label(dentry, buf, buflen);
@@ -6298,17 +6302,19 @@ static int nfs4_xattr_set_nfs4_label(struct dentry *dentry, const char *key,
6298 return -EOPNOTSUPP; 6302 return -EOPNOTSUPP;
6299} 6303}
6300 6304
6301static int nfs4_xattr_get_nfs4_label(struct dentry *dentry, const char *key, 6305static int nfs4_xattr_get_nfs4_label(const struct xattr_handler *handler,
6302 void *buf, size_t buflen, int type) 6306 struct dentry *dentry, const char *key,
6307 void *buf, size_t buflen)
6303{ 6308{
6304 if (security_ismaclabel(key)) 6309 if (security_ismaclabel(key))
6305 return nfs4_get_security_label(d_inode(dentry), buf, buflen); 6310 return nfs4_get_security_label(d_inode(dentry), buf, buflen);
6306 return -EOPNOTSUPP; 6311 return -EOPNOTSUPP;
6307} 6312}
6308 6313
6309static size_t nfs4_xattr_list_nfs4_label(struct dentry *dentry, char *list, 6314static size_t nfs4_xattr_list_nfs4_label(const struct xattr_handler *handler,
6310 size_t list_len, const char *name, 6315 struct dentry *dentry, char *list,
6311 size_t name_len, int type) 6316 size_t list_len, const char *name,
6317 size_t name_len)
6312{ 6318{
6313 size_t len = 0; 6319 size_t len = 0;
6314 6320