Skip to contentSkip to conversation

cifs: Handle extended attribute name cifs_acl to generate cifs acl blob (try #3)

PATCH New [email protected] 1 participant 1 message Nov 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: Handle extended attribute name cifs_acl to generate cifs acl blob (try #3)

From: Shirish Pargaonkar <[email protected]>

Add extended attribute name system.cifs_acl

Get/generate cifs/ntfs acl blob and hand over to the invoker however it wants to parse/process it.

Do get CIFS/NTFS ACL for xattr for attribute system.posix_acl_access

---
 fs/cifs/cifsacl.c   |    2 +-
 fs/cifs/cifsproto.h |    2 ++
 fs/cifs/xattr.c     |   44 ++++++++++++++++++++++----------------------
 3 files changed, 25 insertions(+), 23 deletions(-)
fs/cifs/cifsacl.c +1 -1
index 91992ab..b54fec0 100644
@@ -608,7 +608,7 @@ static struct cifs_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb,
 }
 
 /* Retrieve an ACL from the server */
-static struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb,
+struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb,
 				      struct inode *inode, const char *path,
 				      u32 *pacllen)
 {
fs/cifs/cifsproto.h +2 -0
index 6ed59af..a47ffc2 100644
@@ -134,6 +134,8 @@ extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
 			      struct cifs_fattr *fattr, struct inode *inode,
 			      const char *path, const __u16 *pfid);
 extern int mode_to_acl(struct inode *inode, const char *path, __u64);
+extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *,
+					const char *, u32 *);
 
 extern int cifs_mount(struct super_block *, struct cifs_sb_info *, char *,
 			const char *);
fs/cifs/xattr.c +22 -22

76 lines not on this page · raw message

Signature · 1 line
1.6.0.2