rlimits: add task_struct to update_rlimit_cpu
[linux-2.6.git] / security / selinux / hooks.c
index e3ce6b4..afb18a9 100644 (file)
@@ -2338,7 +2338,8 @@ static void selinux_bprm_committing_creds(struct linux_binprm *bprm)
                        initrlim = init_task.signal->rlim + i;
                        rlim->rlim_cur = min(rlim->rlim_max, initrlim->rlim_cur);
                }
-               update_rlimit_cpu(current->signal->rlim[RLIMIT_CPU].rlim_cur);
+               update_rlimit_cpu(current,
+                               current->signal->rlim[RLIMIT_CPU].rlim_cur);
        }
 }