1. 13 Oct, 2012 1 commit
  2. 12 Nov, 2010 1 commit
  3. 16 Jul, 2010 3 commits
    • Jiri Slaby's avatar
      rlimits: redo do_setrlimit to more generic do_prlimit · 5b41535a
      Jiri Slaby authored
      It now allows also reading of limits. I.e. all read and writes will
      later use this function.
      It takes two parameters, new and old limits which can be both NULL.
      If new is non-NULL, the value in it is set to rlimits.
      If old is non-NULL, current rlimits are stored there.
      If both are non-NULL, old are stored prior to setting the new ones,
      (Similar to sigaction.)
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    • Jiri Slaby's avatar
      rlimits: add rlimit64 structure · 6a1d5e2c
      Jiri Slaby authored
      Add a platform independent structure for resource limits to use with
      a new prlimit64 syscall. This structure is the same which uses glibc
      for 64-bit limits.
      Also add corresponding infinity which is a 64-bit full of bit-ones.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    • Jiri Slaby's avatar
      rlimits: split sys_setrlimit · 7855c35d
      Jiri Slaby authored
      Create do_setrlimit from sys_setrlimit and declare do_setrlimit
      in the resource header. This is the first phase to have generic
      do_prlimit which allows to be called from read, write and compat
      rlimits code.
      The new do_setrlimit also accepts a task pointer to change the limits
      of. Currently, it cannot be other than current, but this will change
      with locking later.
      Also pass tsk->group_leader to security_task_setrlimit to check
      whether current is allowed to change rlimits of the process and not
      its arbitrary thread because it makes more sense given that rlimit are
      per process and not per-thread.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
  4. 04 Jan, 2010 1 commit
    • Jiri Slaby's avatar
      resource: move kernel function inside __KERNEL__ · 96d07d21
      Jiri Slaby authored
      It is an internal function. Move it inside __KERNEL__ ifdef, along
      with task_struct declaration.
      Then we get:
      --- /usr/include/linux/resource.h       2009-09-14 15:09:29.000000000 +0200
      +++ usr/include/linux/resource.h       2010-01-04 11:30:54.000000000 +0100
      @@ -3,8 +3,6 @@
       #include <linux/time.h>
      -struct task_struct;
        * Resource control/accounting header file for linux
      @@ -70,6 +68,5 @@
       #include <asm/resource.h>
      -int getrusage(struct task_struct *p, int who, struct rusage *ru);
      include/linux/Kbuild is untouched, since unifdef is run even on
      headers-y nowadays.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
  5. 30 Oct, 2008 1 commit
  6. 29 Apr, 2008 1 commit
  7. 25 Jun, 2006 1 commit
  8. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      Let it rip!