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
Kirill Smelkov
linux
Commits
f7adeea9
Commit
f7adeea9
authored
Oct 28, 2022
by
Christian Brauner
Committed by
Christian Brauner (Microsoft)
Oct 28, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fs.acl.rework' into for-next
parents
20eb0cf9
cb2144d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/cifs/cifsacl.c
fs/cifs/cifsacl.c
+4
-4
No files found.
fs/cifs/cifsacl.c
View file @
f7adeea9
...
@@ -1764,6 +1764,10 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
...
@@ -1764,6 +1764,10 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
rc
=
PTR_ERR
(
full_path
);
rc
=
PTR_ERR
(
full_path
);
goto
out
;
goto
out
;
}
}
if
(
!
acl
)
goto
out
;
/* return dos attributes as pseudo xattr */
/* return dos attributes as pseudo xattr */
/* return alt name if available as pseudo attr */
/* return alt name if available as pseudo attr */
...
@@ -1778,8 +1782,6 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
...
@@ -1778,8 +1782,6 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
switch
(
type
)
{
switch
(
type
)
{
case
ACL_TYPE_ACCESS
:
case
ACL_TYPE_ACCESS
:
if
(
!
acl
)
goto
out
;
if
(
sb
->
s_flags
&
SB_POSIXACL
)
if
(
sb
->
s_flags
&
SB_POSIXACL
)
rc
=
cifs_do_set_acl
(
xid
,
pTcon
,
full_path
,
acl
,
rc
=
cifs_do_set_acl
(
xid
,
pTcon
,
full_path
,
acl
,
ACL_TYPE_ACCESS
,
ACL_TYPE_ACCESS
,
...
@@ -1788,8 +1790,6 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
...
@@ -1788,8 +1790,6 @@ int cifs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
break
;
break
;
case
ACL_TYPE_DEFAULT
:
case
ACL_TYPE_DEFAULT
:
if
(
!
acl
)
goto
out
;
if
(
sb
->
s_flags
&
SB_POSIXACL
)
if
(
sb
->
s_flags
&
SB_POSIXACL
)
rc
=
cifs_do_set_acl
(
xid
,
pTcon
,
full_path
,
acl
,
rc
=
cifs_do_set_acl
(
xid
,
pTcon
,
full_path
,
acl
,
ACL_TYPE_DEFAULT
,
ACL_TYPE_DEFAULT
,
...
...
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