Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xcap-capability-linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xcap
xcap-capability-linux
Commits
97e94c45
Commit
97e94c45
authored
19 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
[PATCH] no need to wank with task_lock() and pinning task down in audit_syscall_exit()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5411be59
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/auditsc.c
+1
-9
1 addition, 9 deletions
kernel/auditsc.c
with
1 addition
and
9 deletions
kernel/auditsc.c
+
1
−
9
View file @
97e94c45
...
...
@@ -329,7 +329,6 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
return
AUDIT_BUILD_CONTEXT
;
}
/* This should be called with task_lock() held. */
static
inline
struct
audit_context
*
audit_get_context
(
struct
task_struct
*
tsk
,
int
return_valid
,
int
return_code
)
...
...
@@ -823,15 +822,10 @@ void audit_syscall_exit(int valid, long return_code)
struct
task_struct
*
tsk
=
current
;
struct
audit_context
*
context
;
get_task_struct
(
tsk
);
task_lock
(
tsk
);
context
=
audit_get_context
(
tsk
,
valid
,
return_code
);
task_unlock
(
tsk
);
/* Not having a context here is ok, since the parent may have
* called __put_task_struct. */
if
(
likely
(
!
context
))
goto
out
;
return
;
if
(
context
->
in_syscall
&&
context
->
auditable
)
audit_log_exit
(
context
,
tsk
);
...
...
@@ -849,8 +843,6 @@ void audit_syscall_exit(int valid, long return_code)
audit_free_aux
(
context
);
tsk
->
audit_context
=
context
;
}
out:
put_task_struct
(
tsk
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment