mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
Remove execution domain support
All users of exec_domain are gone, now we can get rid of that abandoned feature. To not break existing userspace we keep a dummy /proc/execdomains file which will always contain "0-0 Linux [kernel]". Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
3c7a49d074
commit
973f911f55
3 changed files with 1 additions and 105 deletions
|
@ -1279,9 +1279,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
|
|||
if (nr_threads >= max_threads)
|
||||
goto bad_fork_cleanup_count;
|
||||
|
||||
if (!try_module_get(task_thread_info(p)->exec_domain->module))
|
||||
goto bad_fork_cleanup_count;
|
||||
|
||||
delayacct_tsk_init(p); /* Must remain after dup_task_struct() */
|
||||
p->flags &= ~(PF_SUPERPRIV | PF_WQ_WORKER);
|
||||
p->flags |= PF_FORKNOEXEC;
|
||||
|
@ -1590,7 +1587,6 @@ bad_fork_cleanup_threadgroup_lock:
|
|||
if (clone_flags & CLONE_THREAD)
|
||||
threadgroup_change_end(current);
|
||||
delayacct_tsk_free(p);
|
||||
module_put(task_thread_info(p)->exec_domain->module);
|
||||
bad_fork_cleanup_count:
|
||||
atomic_dec(&p->cred->user->processes);
|
||||
exit_creds(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue