diff options
author | Eric Paris <eparis@redhat.com> | 2012-01-03 14:23:08 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-17 16:17:00 -0500 |
commit | 0a300be6d5be8f66cd96609334710c268d0bfdce (patch) | |
tree | 253d0d1e0aa28a6bdf883bb92e4b62fafe263563 /kernel/auditsc.c | |
parent | 54d3218b31aee5bc9c859ae60fbde933d922448b (diff) |
audit: remove task argument to audit_set_loginuid
The function always deals with current. Don't expose an option
pretending one can use it for something. You can't.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 87b375fb12ff..9d6dd7d869c0 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -2163,16 +2163,16 @@ int auditsc_get_stamp(struct audit_context *ctx, | |||
2163 | static atomic_t session_id = ATOMIC_INIT(0); | 2163 | static atomic_t session_id = ATOMIC_INIT(0); |
2164 | 2164 | ||
2165 | /** | 2165 | /** |
2166 | * audit_set_loginuid - set a task's audit_context loginuid | 2166 | * audit_set_loginuid - set current task's audit_context loginuid |
2167 | * @task: task whose audit context is being modified | ||
2168 | * @loginuid: loginuid value | 2167 | * @loginuid: loginuid value |
2169 | * | 2168 | * |
2170 | * Returns 0. | 2169 | * Returns 0. |
2171 | * | 2170 | * |
2172 | * Called (set) from fs/proc/base.c::proc_loginuid_write(). | 2171 | * Called (set) from fs/proc/base.c::proc_loginuid_write(). |
2173 | */ | 2172 | */ |
2174 | int audit_set_loginuid(struct task_struct *task, uid_t loginuid) | 2173 | int audit_set_loginuid(uid_t loginuid) |
2175 | { | 2174 | { |
2175 | struct task_struct *task = current; | ||
2176 | unsigned int sessionid = atomic_inc_return(&session_id); | 2176 | unsigned int sessionid = atomic_inc_return(&session_id); |
2177 | struct audit_context *context = task->audit_context; | 2177 | struct audit_context *context = task->audit_context; |
2178 | 2178 | ||