acl.c (77435322777d8a8a08264a39111bef94e32b871b) | acl.c (13e83a4923bea7c4f2f6714030cb7e56d20ef7e5) |
---|---|
1// SPDX-License-Identifier: LGPL-2.1 2/* 3 * Copyright IBM Corporation, 2010 4 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> 5 */ 6 7#include <linux/module.h> 8#include <linux/fs.h> --- 137 unchanged lines hidden (view full) --- 146 147 v9ses = v9fs_dentry2v9ses(dentry); 148 /* We allow set/get/list of acl when access=client is not specified. */ 149 if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) 150 return v9fs_acl_get(dentry, posix_acl_xattr_name(type)); 151 return v9fs_get_cached_acl(d_inode(dentry), type); 152} 153 | 1// SPDX-License-Identifier: LGPL-2.1 2/* 3 * Copyright IBM Corporation, 2010 4 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> 5 */ 6 7#include <linux/module.h> 8#include <linux/fs.h> --- 137 unchanged lines hidden (view full) --- 146 147 v9ses = v9fs_dentry2v9ses(dentry); 148 /* We allow set/get/list of acl when access=client is not specified. */ 149 if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) 150 return v9fs_acl_get(dentry, posix_acl_xattr_name(type)); 151 return v9fs_get_cached_acl(d_inode(dentry), type); 152} 153 |
154int v9fs_iop_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry, | 154int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, |
155 struct posix_acl *acl, int type) 156{ 157 int retval; 158 size_t size = 0; 159 void *value = NULL; 160 const char *acl_name; 161 struct v9fs_session_info *v9ses; 162 struct inode *inode = d_inode(dentry); --- 183 unchanged lines hidden --- | 155 struct posix_acl *acl, int type) 156{ 157 int retval; 158 size_t size = 0; 159 void *value = NULL; 160 const char *acl_name; 161 struct v9fs_session_info *v9ses; 162 struct inode *inode = d_inode(dentry); --- 183 unchanged lines hidden --- |