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
f46038ff
Commit
f46038ff
authored
May 06, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] log ppid
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e1396065
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
kernel/auditsc.c
kernel/auditsc.c
+5
-2
No files found.
kernel/auditsc.c
View file @
f46038ff
...
...
@@ -60,6 +60,7 @@
#include <linux/tty.h>
#include <linux/selinux.h>
#include <linux/binfmts.h>
#include <linux/syscalls.h>
#include "audit.h"
...
...
@@ -156,7 +157,7 @@ struct audit_context {
struct
audit_aux_data
*
aux
;
/* Save things to print about task_struct */
pid_t
pid
;
pid_t
pid
,
ppid
;
uid_t
uid
,
euid
,
suid
,
fsuid
;
gid_t
gid
,
egid
,
sgid
,
fsgid
;
unsigned
long
personality
;
...
...
@@ -379,6 +380,7 @@ static inline struct audit_context *audit_get_context(struct task_struct *tsk,
}
context
->
pid
=
tsk
->
pid
;
context
->
ppid
=
sys_getppid
();
/* sic. tsk == current in all cases */
context
->
uid
=
tsk
->
uid
;
context
->
gid
=
tsk
->
gid
;
context
->
euid
=
tsk
->
euid
;
...
...
@@ -614,7 +616,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
tty
=
"(none)"
;
audit_log_format
(
ab
,
" a0=%lx a1=%lx a2=%lx a3=%lx items=%d"
" pid=%d auid=%u uid=%u gid=%u"
" p
pid=%d p
id=%d auid=%u uid=%u gid=%u"
" euid=%u suid=%u fsuid=%u"
" egid=%u sgid=%u fsgid=%u tty=%s"
,
context
->
argv
[
0
],
...
...
@@ -622,6 +624,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
context
->
argv
[
2
],
context
->
argv
[
3
],
context
->
name_count
,
context
->
ppid
,
context
->
pid
,
context
->
loginuid
,
context
->
uid
,
...
...
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