@@ -515,8 +515,8 @@ exit_cifs_idmap(void)
515515}
516516
517517/* copy ntsd, owner sid, and group sid from a security descriptor to another */
518- static __u32 copy_sec_desc (const struct cifs_ntsd * pntsd ,
519- struct cifs_ntsd * pnntsd ,
518+ static __u32 copy_sec_desc (const struct smb_ntsd * pntsd ,
519+ struct smb_ntsd * pnntsd ,
520520 __u32 sidsoffset ,
521521 struct cifs_sid * pownersid ,
522522 struct cifs_sid * pgrpsid )
@@ -527,7 +527,7 @@ static __u32 copy_sec_desc(const struct cifs_ntsd *pntsd,
527527 /* copy security descriptor control portion */
528528 pnntsd -> revision = pntsd -> revision ;
529529 pnntsd -> type = pntsd -> type ;
530- pnntsd -> dacloffset = cpu_to_le32 (sizeof (struct cifs_ntsd ));
530+ pnntsd -> dacloffset = cpu_to_le32 (sizeof (struct smb_ntsd ));
531531 pnntsd -> sacloffset = 0 ;
532532 pnntsd -> osidoffset = cpu_to_le32 (sidsoffset );
533533 pnntsd -> gsidoffset = cpu_to_le32 (sidsoffset + sizeof (struct cifs_sid ));
@@ -1191,7 +1191,7 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
11911191
11921192/* Convert CIFS ACL to POSIX form */
11931193static int parse_sec_desc (struct cifs_sb_info * cifs_sb ,
1194- struct cifs_ntsd * pntsd , int acl_len , struct cifs_fattr * fattr ,
1194+ struct smb_ntsd * pntsd , int acl_len , struct cifs_fattr * fattr ,
11951195 bool get_mode_from_special_sid )
11961196{
11971197 int rc = 0 ;
@@ -1249,7 +1249,7 @@ static int parse_sec_desc(struct cifs_sb_info *cifs_sb,
12491249}
12501250
12511251/* Convert permission bits from mode to equivalent CIFS ACL */
1252- static int build_sec_desc (struct cifs_ntsd * pntsd , struct cifs_ntsd * pnntsd ,
1252+ static int build_sec_desc (struct smb_ntsd * pntsd , struct smb_ntsd * pnntsd ,
12531253 __u32 secdesclen , __u32 * pnsecdesclen , __u64 * pnmode , kuid_t uid , kgid_t gid ,
12541254 bool mode_from_sid , bool id_from_sid , int * aclflag )
12551255{
@@ -1279,7 +1279,7 @@ static int build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd,
12791279 le32_to_cpu (pntsd -> gsidoffset ));
12801280
12811281 if (pnmode && * pnmode != NO_CHANGE_64 ) { /* chmod */
1282- ndacloffset = sizeof (struct cifs_ntsd );
1282+ ndacloffset = sizeof (struct smb_ntsd );
12831283 ndacl_ptr = (struct cifs_acl * )((char * )pnntsd + ndacloffset );
12841284 ndacl_ptr -> revision =
12851285 dacloffset ? dacl_ptr -> revision : cpu_to_le16 (ACL_REVISION );
@@ -1297,7 +1297,7 @@ static int build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd,
12971297
12981298 * aclflag |= CIFS_ACL_DACL ;
12991299 } else {
1300- ndacloffset = sizeof (struct cifs_ntsd );
1300+ ndacloffset = sizeof (struct smb_ntsd );
13011301 ndacl_ptr = (struct cifs_acl * )((char * )pnntsd + ndacloffset );
13021302 ndacl_ptr -> revision =
13031303 dacloffset ? dacl_ptr -> revision : cpu_to_le16 (ACL_REVISION );
@@ -1385,11 +1385,11 @@ static int build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd,
13851385}
13861386
13871387#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY
1388- struct cifs_ntsd * get_cifs_acl_by_fid (struct cifs_sb_info * cifs_sb ,
1388+ struct smb_ntsd * get_cifs_acl_by_fid (struct cifs_sb_info * cifs_sb ,
13891389 const struct cifs_fid * cifsfid , u32 * pacllen ,
13901390 u32 __maybe_unused unused )
13911391{
1392- struct cifs_ntsd * pntsd = NULL ;
1392+ struct smb_ntsd * pntsd = NULL ;
13931393 unsigned int xid ;
13941394 int rc ;
13951395 struct tcon_link * tlink = cifs_sb_tlink (cifs_sb );
@@ -1410,10 +1410,10 @@ struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *cifs_sb,
14101410 return pntsd ;
14111411}
14121412
1413- static struct cifs_ntsd * get_cifs_acl_by_path (struct cifs_sb_info * cifs_sb ,
1413+ static struct smb_ntsd * get_cifs_acl_by_path (struct cifs_sb_info * cifs_sb ,
14141414 const char * path , u32 * pacllen )
14151415{
1416- struct cifs_ntsd * pntsd = NULL ;
1416+ struct smb_ntsd * pntsd = NULL ;
14171417 int oplock = 0 ;
14181418 unsigned int xid ;
14191419 int rc ;
@@ -1454,11 +1454,11 @@ static struct cifs_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb,
14541454}
14551455
14561456/* Retrieve an ACL from the server */
1457- struct cifs_ntsd * get_cifs_acl (struct cifs_sb_info * cifs_sb ,
1457+ struct smb_ntsd * get_cifs_acl (struct cifs_sb_info * cifs_sb ,
14581458 struct inode * inode , const char * path ,
14591459 u32 * pacllen , u32 info )
14601460{
1461- struct cifs_ntsd * pntsd = NULL ;
1461+ struct smb_ntsd * pntsd = NULL ;
14621462 struct cifsFileInfo * open_file = NULL ;
14631463
14641464 if (inode )
@@ -1472,7 +1472,7 @@ struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *cifs_sb,
14721472}
14731473
14741474 /* Set an ACL on the server */
1475- int set_cifs_acl (struct cifs_ntsd * pnntsd , __u32 acllen ,
1475+ int set_cifs_acl (struct smb_ntsd * pnntsd , __u32 acllen ,
14761476 struct inode * inode , const char * path , int aclflag )
14771477{
14781478 int oplock = 0 ;
@@ -1528,7 +1528,7 @@ cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, struct cifs_fattr *fattr,
15281528 struct inode * inode , bool mode_from_special_sid ,
15291529 const char * path , const struct cifs_fid * pfid )
15301530{
1531- struct cifs_ntsd * pntsd = NULL ;
1531+ struct smb_ntsd * pntsd = NULL ;
15321532 u32 acllen = 0 ;
15331533 int rc = 0 ;
15341534 struct tcon_link * tlink = cifs_sb_tlink (cifs_sb );
@@ -1581,8 +1581,8 @@ id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
15811581 __u32 nsecdesclen = 0 ;
15821582 __u32 dacloffset = 0 ;
15831583 struct cifs_acl * dacl_ptr = NULL ;
1584- struct cifs_ntsd * pntsd = NULL ; /* acl obtained from server */
1585- struct cifs_ntsd * pnntsd = NULL ; /* modified acl to be sent to server */
1584+ struct smb_ntsd * pntsd = NULL ; /* acl obtained from server */
1585+ struct smb_ntsd * pnntsd = NULL ; /* modified acl to be sent to server */
15861586 struct cifs_sb_info * cifs_sb = CIFS_SB (inode -> i_sb );
15871587 struct tcon_link * tlink = cifs_sb_tlink (cifs_sb );
15881588 struct smb_version_operations * ops ;
@@ -1630,7 +1630,7 @@ id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
16301630 nsecdesclen += 5 * sizeof (struct cifs_ace );
16311631 } else { /* chown */
16321632 /* When ownership changes, changes new owner sid length could be different */
1633- nsecdesclen = sizeof (struct cifs_ntsd ) + (sizeof (struct cifs_sid ) * 2 );
1633+ nsecdesclen = sizeof (struct smb_ntsd ) + (sizeof (struct cifs_sid ) * 2 );
16341634 dacloffset = le32_to_cpu (pntsd -> dacloffset );
16351635 if (dacloffset ) {
16361636 dacl_ptr = (struct cifs_acl * )((char * )pntsd + dacloffset );
0 commit comments