Merge branch 'writable_limits' of git://decibel.fi.muni.cz/~xslaby/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 19:07:51 +0000 (12:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 19:07:51 +0000 (12:07 -0700)
* 'writable_limits' of git://decibel.fi.muni.cz/~xslaby/linux:
  unistd: add __NR_prlimit64 syscall numbers
  rlimits: implement prlimit64 syscall
  rlimits: switch more rlimit syscalls to do_prlimit
  rlimits: redo do_setrlimit to more generic do_prlimit
  rlimits: add rlimit64 structure
  rlimits: do security check under task_lock
  rlimits: allow setrlimit to non-current tasks
  rlimits: split sys_setrlimit
  rlimits: selinux, do rlimits changes under task_lock
  rlimits: make sure ->rlim_max never grows in sys_setrlimit
  rlimits: add task_struct to update_rlimit_cpu
  rlimits: security, add task_struct to setrlimit

Fix up various system call number conflicts.  We not only added fanotify
system calls in the meantime, but asm-generic/unistd.h added a wait4
along with a range of reserved per-architecture system calls.

1  2 
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/syscall_table_32.S
include/asm-generic/unistd.h
include/linux/security.h
include/linux/syscalls.h
kernel/posix-cpu-timers.c
security/capability.c
security/security.c
security/selinux/hooks.c

index 17cf65c948048cbd22257005b9ebec5e50a86335,a88e31d1836ea18fa30c5034619a0d9ad704dca6..91dc4bb130321cf23ae8c3f5e4b2d5808872c84d
@@@ -842,6 -842,5 +842,7 @@@ ia32_sys_call_table
        .quad compat_sys_rt_tgsigqueueinfo      /* 335 */
        .quad sys_perf_event_open
        .quad compat_sys_recvmmsg
 +      .quad sys_fanotify_init
 +      .quad sys32_fanotify_mark
+       .quad sys_prlimit64
  ia32_syscall_end:
index 80b799cd74f7ad8be7461dc21f09827ad107c582,35e0cb151b6935c1f6d3a9f216a3460f3745b874..b766a5e8ba0e7802501b049034394a343216cf4a
  #define __NR_rt_tgsigqueueinfo        335
  #define __NR_perf_event_open  336
  #define __NR_recvmmsg         337
 -#define __NR_prlimit64                338
 +#define __NR_fanotify_init    338
 +#define __NR_fanotify_mark    339
++#define __NR_prlimit64                340
  
  #ifdef __KERNEL__
  
- #define NR_syscalls 340
 -#define NR_syscalls 339
++#define NR_syscalls 341
  
  #define __ARCH_WANT_IPC_PARSE_VERSION
  #define __ARCH_WANT_OLD_READDIR
index 5b7b1d5856167457209b2eddb75ea19593aeac26,570bf5eae564059b4517d7d7e0a1d423b2348d61..363e9b8a715b6d5144ebc8135d65dc75ce9e9e5c
@@@ -663,10 -663,8 +663,12 @@@ __SYSCALL(__NR_rt_tgsigqueueinfo, sys_r
  __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
  #define __NR_recvmmsg                         299
  __SYSCALL(__NR_recvmmsg, sys_recvmmsg)
 -#define __NR_prlimit64                                300
 +#define __NR_fanotify_init                    300
 +__SYSCALL(__NR_fanotify_init, sys_fanotify_init)
 +#define __NR_fanotify_mark                    301
 +__SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
++#define __NR_prlimit64                                302
+ __SYSCALL(__NR_prlimit64, sys_prlimit64)
  
  #ifndef __NO_STUBS
  #define __ARCH_WANT_OLD_READDIR
index 07ad5eb7cc5c57715e6229ac3513ae4a5de556a8,eca1d7d23ab56b5a5c191ade685c0685bbbfeac9..4802accb9d8d08be4cad495a923943b32bf21d4a
@@@ -337,5 -337,4 +337,6 @@@ ENTRY(sys_call_table
        .long sys_rt_tgsigqueueinfo     /* 335 */
        .long sys_perf_event_open
        .long sys_recvmmsg
 +      .long sys_fanotify_init
 +      .long sys_fanotify_mark
+       .long sys_prlimit64
index c17cebc499522d160eacb93807593112e23673ca,0dfd517e5ec93292ed417b91497596e063bfbcfb..e1898090f22c88cf2eaaa09bb2f7ade8edf6eba9
@@@ -631,18 -626,11 +631,20 @@@ __SYSCALL(__NR_perf_event_open, sys_per
  __SYSCALL(__NR_accept4, sys_accept4)
  #define __NR_recvmmsg 243
  __SYSCALL(__NR_recvmmsg, sys_recvmmsg)
 -#define __NR_prlimit64 244
 +
 +/*
 + * Architectures may provide up to 16 syscalls of their own
 + * starting with this value.
 + */
 +#define __NR_arch_specific_syscall 244
 +
 +#define __NR_wait4 260
 +__SYSCALL(__NR_wait4, sys_wait4)
++#define __NR_prlimit64 261
+ __SYSCALL(__NR_prlimit64, sys_prlimit64)
  
  #undef __NR_syscalls
- #define __NR_syscalls 261
 -#define __NR_syscalls 245
++#define __NR_syscalls 262
  
  /*
   * All syscalls below here should go away really,
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge