forked from rubenslte/android_kernel_samsung_msm8226
kernel/sys.c: ifndef out PR_SET_TIMERSLACK_PID case for H-projects
* The comment says this case isn't supposed to be here for H-projects, variables it depends on are ifndef-ed out for H-projects, just get rid of it. Change-Id: Ic67a1e97c4429dd5cf4df9e2f45fb63d13e4054f Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
25394d0e37
commit
c8255adb5e
+2
-1
@@ -2271,7 +2271,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
||||
error = prctl_set_vma(arg2, arg3, arg4, arg5);
|
||||
break;
|
||||
/* remove this case because of sidesync call mute for H-projects */
|
||||
|
||||
#ifndef CONFIG_SEC_H_PROJECT
|
||||
case PR_SET_TIMERSLACK_PID:
|
||||
if (task_pid_vnr(current) != (pid_t)arg3 &&
|
||||
!capable(CAP_SYS_NICE))
|
||||
@@ -2292,6 +2292,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
||||
put_task_struct(tsk);
|
||||
error = 0;
|
||||
break;
|
||||
#endif
|
||||
case PR_SET_NO_NEW_PRIVS:
|
||||
if (arg2 != 1 || arg3 || arg4 || arg5)
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user