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
3c66251e
Commit
3c66251e
authored
May 06, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add filtering by ppid
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f46038ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/linux/audit.h
include/linux/audit.h
+1
-0
kernel/auditsc.c
kernel/auditsc.c
+4
-0
No files found.
include/linux/audit.h
View file @
3c66251e
...
...
@@ -152,6 +152,7 @@
#define AUDIT_SE_TYPE 15
/* security label type */
#define AUDIT_SE_SEN 16
/* security label sensitivity label */
#define AUDIT_SE_CLR 17
/* security label clearance label */
#define AUDIT_PPID 18
/* These are ONLY useful when checking
* at syscall exit time (AUDIT_AT_EXIT). */
...
...
kernel/auditsc.c
View file @
3c66251e
...
...
@@ -188,6 +188,10 @@ static int audit_filter_rules(struct task_struct *tsk,
case
AUDIT_PID
:
result
=
audit_comparator
(
tsk
->
pid
,
f
->
op
,
f
->
val
);
break
;
case
AUDIT_PPID
:
if
(
ctx
)
result
=
audit_comparator
(
ctx
->
ppid
,
f
->
op
,
f
->
val
);
break
;
case
AUDIT_UID
:
result
=
audit_comparator
(
tsk
->
uid
,
f
->
op
,
f
->
val
);
break
;
...
...
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