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
e1761424
Commit
e1761424
authored
Apr 02, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Make the XFS access checks like the other Linux filesystems for DAC.
SGI Modid: xfs-linux:xfs-kern:169300a
parent
2606a07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+3
-4
No files found.
fs/xfs/xfs_inode.c
View file @
e1761424
...
...
@@ -3707,14 +3707,13 @@ xfs_iaccess(
* Read/write DACs are always overridable.
* Executable DACs are overridable if at least one exec bit is set.
*/
if
(
!
(
orgmode
&
S_IXUSR
)
||
(
inode
->
i_mode
&
S_IXUGO
)
||
(
i
p
->
i_d
.
di_mode
&
S_IFMT
)
==
S_IFDIR
)
if
(
!
(
orgmode
&
S_IXUSR
)
||
(
i
node
->
i_mode
&
S_IXUGO
)
||
S_ISDIR
(
inode
->
i_mode
)
)
if
(
capable_cred
(
cr
,
CAP_DAC_OVERRIDE
))
return
0
;
if
((
orgmode
==
S_IRUSR
)
||
(((
ip
->
i_d
.
di_mode
&
S_IFMT
)
==
S_IFDIR
)
&&
(
!
(
orgmode
&
~
(
S_IWUSR
|
S_IXUSR
)))))
{
(
S_ISDIR
(
inode
->
i_mode
)
&&
(
!
(
orgmode
&
S_IWUSR
))))
{
if
(
capable_cred
(
cr
,
CAP_DAC_READ_SEARCH
))
return
0
;
#ifdef NOISE
...
...
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