You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sys_prctl(): coding-style cleanup
Remove a tabstop from the switch statement, in the usual fashion. A few instances of weirdwrapping were removed as a result. Cc: Chen Gang <gang.chen@asianux.com> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
7fe5e04292
commit
f3cbd435b0
+4
-6
@@ -2027,8 +2027,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||||||
error = get_dumpable(me->mm);
|
error = get_dumpable(me->mm);
|
||||||
break;
|
break;
|
||||||
case PR_SET_DUMPABLE:
|
case PR_SET_DUMPABLE:
|
||||||
if (arg2 != SUID_DUMP_DISABLE &&
|
if (arg2 != SUID_DUMP_DISABLE && arg2 != SUID_DUMP_USER) {
|
||||||
arg2 != SUID_DUMP_USER) {
|
|
||||||
error = -EINVAL;
|
error = -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2061,7 +2060,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||||||
error = -EINVAL;
|
error = -EINVAL;
|
||||||
break;
|
break;
|
||||||
case PR_SET_NAME:
|
case PR_SET_NAME:
|
||||||
comm[sizeof(me->comm)-1] = 0;
|
comm[sizeof(me->comm) - 1] = 0;
|
||||||
if (strncpy_from_user(comm, (char __user *)arg2,
|
if (strncpy_from_user(comm, (char __user *)arg2,
|
||||||
sizeof(me->comm) - 1) < 0)
|
sizeof(me->comm) - 1) < 0)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@@ -2070,8 +2069,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||||||
break;
|
break;
|
||||||
case PR_GET_NAME:
|
case PR_GET_NAME:
|
||||||
get_task_comm(comm, me);
|
get_task_comm(comm, me);
|
||||||
if (copy_to_user((char __user *)arg2, comm,
|
if (copy_to_user((char __user *)arg2, comm, sizeof(comm)))
|
||||||
sizeof(comm)))
|
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
break;
|
break;
|
||||||
case PR_GET_ENDIAN:
|
case PR_GET_ENDIAN:
|
||||||
@@ -2153,7 +2151,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||||||
break;
|
break;
|
||||||
case PR_GET_CHILD_SUBREAPER:
|
case PR_GET_CHILD_SUBREAPER:
|
||||||
error = put_user(me->signal->is_child_subreaper,
|
error = put_user(me->signal->is_child_subreaper,
|
||||||
(int __user *) arg2);
|
(int __user *)arg2);
|
||||||
break;
|
break;
|
||||||
case PR_SET_NO_NEW_PRIVS:
|
case PR_SET_NO_NEW_PRIVS:
|
||||||
if (arg2 != 1 || arg3 || arg4 || arg5)
|
if (arg2 != 1 || arg3 || arg4 || arg5)
|
||||||
|
|||||||
Reference in New Issue
Block a user