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
93d3a10e
Commit
93d3a10e
authored
Jul 27, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auditsc: propage umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2570ebbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kernel/auditsc.c
kernel/auditsc.c
+2
-2
No files found.
kernel/auditsc.c
View file @
93d3a10e
...
@@ -308,7 +308,7 @@ static int audit_match_perm(struct audit_context *ctx, int mask)
...
@@ -308,7 +308,7 @@ static int audit_match_perm(struct audit_context *ctx, int mask)
static
int
audit_match_filetype
(
struct
audit_context
*
ctx
,
int
which
)
static
int
audit_match_filetype
(
struct
audit_context
*
ctx
,
int
which
)
{
{
unsigned
index
=
which
&
~
S_IFMT
;
unsigned
index
=
which
&
~
S_IFMT
;
mode_t
mode
=
which
&
S_IFMT
;
u
mode_t
mode
=
which
&
S_IFMT
;
if
(
unlikely
(
!
ctx
))
if
(
unlikely
(
!
ctx
))
return
0
;
return
0
;
...
@@ -1502,7 +1502,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
...
@@ -1502,7 +1502,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
if
(
n
->
ino
!=
(
unsigned
long
)
-
1
)
{
if
(
n
->
ino
!=
(
unsigned
long
)
-
1
)
{
audit_log_format
(
ab
,
" inode=%lu"
audit_log_format
(
ab
,
" inode=%lu"
" dev=%02x:%02x mode=%#o"
" dev=%02x:%02x mode=%#
h
o"
" ouid=%u ogid=%u rdev=%02x:%02x"
,
" ouid=%u ogid=%u rdev=%02x:%02x"
,
n
->
ino
,
n
->
ino
,
MAJOR
(
n
->
dev
),
MAJOR
(
n
->
dev
),
...
...
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