kernel: Remove NULL-ing after commit_creds
* Although it works, but i suspect it causing reboot * issue in some device, so i'll drop it Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
@@ -186,13 +186,6 @@ void escape_to_root(void)
|
||||
|
||||
commit_creds(cred);
|
||||
|
||||
// FIXME: Maybe need to remove? The tests were fine.
|
||||
// reference: https://elixir.bootlin.com/linux/v5.4/source/fs/exec.c#L1456
|
||||
if (cred) {
|
||||
pr_info("%s: NULL-ing creds after committing..\n", __func__);
|
||||
cred = NULL;
|
||||
}
|
||||
|
||||
// Refer to kernel/seccomp.c: seccomp_set_mode_strict
|
||||
// When disabling Seccomp, ensure that current->sighand->siglock is held during the operation.
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
|
||||
Reference in New Issue
Block a user