summaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorEric Paris2012-01-03 20:23:08 +0100
committerAl Viro2012-01-17 22:17:00 +0100
commit0a300be6d5be8f66cd96609334710c268d0bfdce (patch)
tree253d0d1e0aa28a6bdf883bb92e4b62fafe263563 /kernel/auditsc.c
parentaudit: allow audit matching on inode gid (diff)
downloadkernel-qcow2-linux-0a300be6d5be8f66cd96609334710c268d0bfdce.tar.gz
kernel-qcow2-linux-0a300be6d5be8f66cd96609334710c268d0bfdce.tar.xz
kernel-qcow2-linux-0a300be6d5be8f66cd96609334710c268d0bfdce.zip
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.c6
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,
static atomic_t session_id = ATOMIC_INIT(0);
/**
- * audit_set_loginuid - set a task's audit_context loginuid
- * @task: task whose audit context is being modified
+ * audit_set_loginuid - set current task's audit_context loginuid
* @loginuid: loginuid value
*
* Returns 0.
*
* Called (set) from fs/proc/base.c::proc_loginuid_write().
*/
-int audit_set_loginuid(struct task_struct *task, uid_t loginuid)
+int audit_set_loginuid(uid_t loginuid)
{
+ struct task_struct *task = current;
unsigned int sessionid = atomic_inc_return(&session_id);
struct audit_context *context = task->audit_context;