Re: [PATCH 2.6.13 1/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
The patch for the getprlimit() syscall: Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - include/linux/security.h | 25 ++- kernel/sys.c

Re: [PATCH 2.6.13 2/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
The patch for the setprlimit() syscall: Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - kernel/sys.c | 114 --- security/selinux/h

[PATCH 2.6.13 0/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
Bit reimplementation Alan suggested without introducing the same bugs again. Thanks, Wieland The man page for this version of get/setprlimit(): Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> - .\" Hey Emacs

[PATCH 2.6.13 0/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
Bit reimplementation Alan suggested without introducing the same bugs again. Thanks, Wieland The man page for this version of get/setprlimit(): Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] - .\ Hey Emacs! This file

Re: [PATCH 2.6.13 1/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
The patch for the getprlimit() syscall: Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - include/linux/security.h | 25 ++- kernel/sys.c | 85

Re: [PATCH 2.6.13 2/2] New Syscall: get/set rlimits of any process (udate)

2005-08-31 Thread Wieland Gmeiner
The patch for the setprlimit() syscall: Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - kernel/sys.c | 114 --- security/selinux/hooks.c

Re: [PATCH 2.6.13-rc7 2/2] New Syscall: set rlimits of any process (reworked)

2005-08-28 Thread Wieland Gmeiner
On Fri, 2005-08-26 at 16:34 +0100, Alan Cox wrote: > On Gwe, 2005-08-26 at 05:39 +0200, Wieland Gmeiner wrote: > > This is the second of two patches, it implements the setprlimit() > > syscall. > > > > Implementation: This patch provides a new syscall setprlimit() for

Re: [PATCH 2.6.13-rc7 2/2] New Syscall: set rlimits of any process (reworked)

2005-08-28 Thread Wieland Gmeiner
On Fri, 2005-08-26 at 16:34 +0100, Alan Cox wrote: On Gwe, 2005-08-26 at 05:39 +0200, Wieland Gmeiner wrote: This is the second of two patches, it implements the setprlimit() syscall. Implementation: This patch provides a new syscall setprlimit() for writing a given process resource

[PATCH 2.6.13-rc7 2/2] New Syscall: set rlimits of any process (reworked)

2005-08-25 Thread Wieland Gmeiner
.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - kernel/sys.c | 114 --- security/selinux/h

[PATCH 2.6.13-rc7 1/2] New Syscall: get rlimits of any process (reworked)

2005-08-25 Thread Wieland Gmeiner
on http://stud4.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - include/linux/security.h | 25 +++- kernel/sys.c

[PATCH 2.6.13-rc7 1/2] New Syscall: get rlimits of any process (reworked)

2005-08-25 Thread Wieland Gmeiner
on http://stud4.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - include/linux/security.h | 25 +++- kernel/sys.c | 81

[PATCH 2.6.13-rc7 2/2] New Syscall: set rlimits of any process (reworked)

2005-08-25 Thread Wieland Gmeiner
.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] --- arch/i386/kernel/syscall_table.S |1 include/asm-i386/unistd.h|3 - kernel/sys.c | 114 --- security/selinux/hooks.c | 14

Re: [PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process (update)

2005-08-18 Thread Wieland Gmeiner
On Thu, 2005-08-18 at 04:05 +0200, Andi Kleen wrote: > Is there a realistic use case where this new system call is actually useful > and solves something that cannot be solved without it? As an example: It seems to be a common problem with numerous services to run out of available file

Re: [PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process (update)

2005-08-18 Thread Wieland Gmeiner
On Thu, 2005-08-18 at 04:05 +0200, Andi Kleen wrote: Is there a realistic use case where this new system call is actually useful and solves something that cannot be solved without it? As an example: It seems to be a common problem with numerous services to run out of available file

[PATCH 2.6.13-rc6 2/2] New Syscall: set rlimits of any process (update)

2005-08-17 Thread Wieland Gmeiner
.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> diff -uprN -X linux-2.6.13-rc6-vanilla/Documentation/dontdiff linux-2.6.13-rc6-getprlimit/arch/i386/kernel/syscall_table.S linux-2.6.13-rc6-setprlimit/arch/i386/kernel/syscall_table.S --- linux-2.6.

[PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process (update)

2005-08-17 Thread Wieland Gmeiner
the gid, egid, sgid of the target process. (This resembles the behaviour of the ptrace system call.) See the followup for the writing syscall. Simple programs for testing the syscalls can be found on http://stud4.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner <[EM

[PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process (update)

2005-08-17 Thread Wieland Gmeiner
the gid, egid, sgid of the target process. (This resembles the behaviour of the ptrace system call.) See the followup for the writing syscall. Simple programs for testing the syscalls can be found on http://stud4.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner [EMAIL

[PATCH 2.6.13-rc6 2/2] New Syscall: set rlimits of any process (update)

2005-08-17 Thread Wieland Gmeiner
.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] diff -uprN -X linux-2.6.13-rc6-vanilla/Documentation/dontdiff linux-2.6.13-rc6-getprlimit/arch/i386/kernel/syscall_table.S linux-2.6.13-rc6-setprlimit/arch/i386/kernel/syscall_table.S --- linux-2.6.13-rc6

Re: [PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process

2005-08-16 Thread Wieland Gmeiner
On Sat, 2005-08-13 at 15:11 -0700, Greg KH wrote: > On Fri, Aug 12, 2005 at 07:48:22PM +0200, Wieland Gmeiner wrote: > > @@ -294,3 +294,4 @@ ENTRY(sys_call_table) > > .long sys_inotify_init > > .long sys_inotify_add_watch > > .long sys_inotify_rm_watch > &

Re: [PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process

2005-08-16 Thread Wieland Gmeiner
On Sat, 2005-08-13 at 15:11 -0700, Greg KH wrote: On Fri, Aug 12, 2005 at 07:48:22PM +0200, Wieland Gmeiner wrote: @@ -294,3 +294,4 @@ ENTRY(sys_call_table) .long sys_inotify_init .long sys_inotify_add_watch .long sys_inotify_rm_watch +.long sys_getprlimit Please

[PATCH 2.6.13-rc6 2/2] New Syscall: set rlimits of any process

2005-08-12 Thread Wieland Gmeiner
whose rlimit is being written and the calling process uid equals the euid of the process whose rlimit is being written or - the calling process euid equals the suid of the process whose rlimit is being written Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> diff -uprN -X linux-

[PATCH 2.6.13-rc6 1/2] New Syscall: get rlimits of any process

2005-08-12 Thread Wieland Gmeiner
ble access is under construction. Simple programs for testing the syscalls can be found on http://stud4.tuwien.ac.at/~e8607062/studies/soc/patches/ Signed-off-by: Wieland Gmeiner <[EMAIL PROTECTED]> diff -uprN -X linux-2.6.13-rc6-vanilla/Documentation/dontdiff linux-2.6.13-rc6-vanilla/

[PATCH 2.6.13-rc6 2/2] New Syscall: set rlimits of any process

2005-08-12 Thread Wieland Gmeiner
whose rlimit is being written and the calling process uid equals the euid of the process whose rlimit is being written or - the calling process euid equals the suid of the process whose rlimit is being written Signed-off-by: Wieland Gmeiner [EMAIL PROTECTED] diff -uprN -X linux-2.6.13-rc6

System call registration mess?

2005-07-12 Thread Wieland Gmeiner
I want to register a new system call and notice that on several architectures there is some inconsistency between the system call table and unistd.h, e.g. (2.6.13-rc2): in arch/arm/kernel/calls.S: ... /* 310 */ .long sys_request_key .long sys_keyctl .long

System call registration mess?

2005-07-12 Thread Wieland Gmeiner
I want to register a new system call and notice that on several architectures there is some inconsistency between the system call table and unistd.h, e.g. (2.6.13-rc2): in arch/arm/kernel/calls.S: ... /* 310 */ .long sys_request_key .long sys_keyctl .long