diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-11-25 08:00:37 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 14:13:11 -0500 |
commit | 36f87ee70f754d04e55518853e6fb30ed4732dda (patch) | |
tree | 59169a8e5ce4a3ff23a7d5e9dbaa88a3515259cb /fs/cifs/cifsacl.h | |
parent | 436bb435fcbe2d52678ec7e2abc45fd1938601ce (diff) |
cifs: make cifs_copy_sid handle a source sid with variable size subauth arrays
...and lift the restriction in id_to_sid upcall that the size must be
at least as big as a full cifs_sid.
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsacl.h')
-rw-r--r-- | fs/cifs/cifsacl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h index 18c7521273a7..7e52f19f996f 100644 --- a/fs/cifs/cifsacl.h +++ b/fs/cifs/cifsacl.h | |||
@@ -64,6 +64,9 @@ struct cifs_sid { | |||
64 | __le32 sub_auth[NUM_SUBAUTHS]; /* sub_auth[num_subauth] */ | 64 | __le32 sub_auth[NUM_SUBAUTHS]; /* sub_auth[num_subauth] */ |
65 | } __attribute__((packed)); | 65 | } __attribute__((packed)); |
66 | 66 | ||
67 | /* size of a struct cifs_sid, sans sub_auth array */ | ||
68 | #define CIFS_SID_BASE_SIZE (1 + 1 + NUM_AUTHS) | ||
69 | |||
67 | struct cifs_acl { | 70 | struct cifs_acl { |
68 | __le16 revision; /* revision level */ | 71 | __le16 revision; /* revision level */ |
69 | __le16 size; | 72 | __le16 size; |