Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d12fd121
Commit
d12fd121
authored
Oct 03, 2007
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Cleanup formatting
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
d0d66c44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
46 deletions
+51
-46
fs/cifs/cifsacl.c
fs/cifs/cifsacl.c
+39
-39
fs/cifs/xattr.c
fs/cifs/xattr.c
+12
-7
No files found.
fs/cifs/cifsacl.c
View file @
d12fd121
...
@@ -30,12 +30,12 @@
...
@@ -30,12 +30,12 @@
/* security id for everyone */
/* security id for everyone */
static
const
struct
cifs_sid
sid_everyone
=
static
const
struct
cifs_sid
sid_everyone
=
{
1
,
1
,
{
0
,
0
,
0
,
0
,
0
,
0
},
{}};
{
1
,
1
,
{
0
,
0
,
0
,
0
,
0
,
0
},
{}
};
/* group users */
/* group users */
static
const
struct
cifs_sid
sid_user
=
static
const
struct
cifs_sid
sid_user
=
{
1
,
2
,
{
0
,
0
,
0
,
0
,
0
,
5
},
{}};
{
1
,
2
,
{
0
,
0
,
0
,
0
,
0
,
5
},
{}
};
static
void
parse_ace
(
struct
cifs_ace
*
pace
,
char
*
end_of_acl
)
static
void
parse_ace
(
struct
cifs_ace
*
pace
,
char
*
end_of_acl
)
{
{
int
i
;
int
i
;
int
num_subauth
;
int
num_subauth
;
...
@@ -68,7 +68,7 @@ static void parse_ace(struct cifs_ace * pace, char * end_of_acl)
...
@@ -68,7 +68,7 @@ static void parse_ace(struct cifs_ace * pace, char * end_of_acl)
return
;
return
;
}
}
static
void
parse_ntace
(
struct
cifs_ntace
*
pntace
,
char
*
end_of_acl
)
static
void
parse_ntace
(
struct
cifs_ntace
*
pntace
,
char
*
end_of_acl
)
{
{
/* validate that we do not go past end of acl */
/* validate that we do not go past end of acl */
if
(
end_of_acl
<
(
char
*
)
pntace
+
sizeof
(
struct
cifs_ntace
))
{
if
(
end_of_acl
<
(
char
*
)
pntace
+
sizeof
(
struct
cifs_ntace
))
{
...
@@ -86,7 +86,7 @@ static void parse_ntace(struct cifs_ntace * pntace, char * end_of_acl)
...
@@ -86,7 +86,7 @@ static void parse_ntace(struct cifs_ntace * pntace, char * end_of_acl)
static
void
parse_dacl
(
struct
cifs_acl
*
pdacl
,
char
*
end_of_acl
)
static
void
parse_dacl
(
struct
cifs_acl
*
pdacl
,
char
*
end_of_acl
)
{
{
int
i
;
int
i
;
int
num_aces
=
0
;
int
num_aces
=
0
;
...
...
fs/cifs/xattr.c
View file @
d12fd121
...
@@ -261,21 +261,26 @@ ssize_t cifs_getxattr(struct dentry *direntry, const char *ea_name,
...
@@ -261,21 +261,26 @@ ssize_t cifs_getxattr(struct dentry *direntry, const char *ea_name,
cifs_sb
->
local_nls
,
cifs_sb
->
local_nls
,
cifs_sb
->
mnt_cifs_flags
&
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_MAP_SPECIAL_CHR
);
CIFS_MOUNT_MAP_SPECIAL_CHR
);
/* else if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) {
#ifdef CONFIG_CIFS_EXPERIMENTAL
else
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_CIFS_ACL
)
{
__u16
fid
;
__u16
fid
;
int
oplock
=
FALSE
;
int
oplock
=
FALSE
;
if
(
experimEnabled
)
rc
=
CIFSSMBOpen
(
xid
,
pTcon
,
full_path
,
rc
=
CIFSSMBOpen
(
xid
,
pTcon
,
full_path
,
FILE_OPEN
,
GENERIC_READ
,
0
,
&
fid
,
FILE_OPEN
,
GENERIC_READ
,
0
,
&
fid
,
&
oplock
,
NULL
,
cifs_sb
->
local_nls
,
&
oplock
,
NULL
,
cifs_sb
->
local_nls
,
cifs_sb
->
mnt_cifs_flags
&
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_MAP_SPECIAL_CHR
);
CIFS_MOUNT_MAP_SPECIAL_CHR
);
/* else rc is EOPNOTSUPP from above */
if
(
rc
==
0
)
{
if
(
rc
==
0
)
{
rc
=
CIFSSMBGetCIFSACL
(
xid
,
pTcon
,
fid
,
rc
=
CIFSSMBGetCIFSACL
(
xid
,
pTcon
,
fid
,
ea_value
,
buf_size
,
ea_value
,
buf_size
,
ACL_TYPE_ACCESS
);
ACL_TYPE_ACCESS
);
CIFSSMBClose
(
xid
,
pTcon
,
fid
);
CIFSSMBClose
(
xid
,
pTcon
,
fid
);
}
}
} */
/* BB enable after fixing up return data */
}
#endif
/* EXPERIMENTAL */
#else
#else
cFYI
(
1
,
(
"query POSIX ACL not supported yet"
));
cFYI
(
1
,
(
"query POSIX ACL not supported yet"
));
#endif
/* CONFIG_CIFS_POSIX */
#endif
/* CONFIG_CIFS_POSIX */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment