Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71564
b: refs/heads/master
c: 4084973
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Oct 1, 2007
1 parent 40045bd commit aef3242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92ad9b93cd268371d1fc0edbd09383cc1c59be34
refs/heads/master: 4084973dbae9a24e58598d6cdf60f0e5e4a3cabf
4 changes: 2 additions & 2 deletions trunk/fs/cifs/cifsacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
}
#ifdef CONFIG_CIFS_DEBUG2
cFYI(1, ("revision %d num_auth %d First subauth 0x%x",
psid->revision, psid->num_auth, psid->sub_auth[0]));
psid->revision, psid->num_subauth, psid->sub_auth[0]));

/* BB add length check to make sure that we do not have huge num auths
and therefore go off the end */
cFYI(1, ("RID 0x%x", le32_to_cpu(psid->sub_auth[psid->num_auth])));
cFYI(1, ("RID 0x%x", le32_to_cpu(psid->sub_auth[psid->num_subauth])));
#endif
return 0;
}
Expand Down
10 changes: 4 additions & 6 deletions trunk/fs/cifs/cifsacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ struct cifs_ntsd {

struct cifs_sid {
__u8 revision; /* revision level */
__u8 num_auth;
__u8 num_subauth;
__u8 authority[6];
__u32 sub_auth[4];
__u32 rid;
__u32 sub_auth[0]; /* sub_auth[num_subauth] */
} __attribute__((packed));

struct cifs_acl {
Expand All @@ -54,10 +53,9 @@ struct cifs_ntace {

struct cifs_ace {
__u8 revision; /* revision level */
__u8 num_auth;
__u8 num_subauth;
__u8 authority[6];
__u32 sub_auth[4];
__u32 rid;
__u32 sub_auth[0];
} __attribute__((packed));

/* everyone */
Expand Down

0 comments on commit aef3242

Please sign in to comment.