16 Jan, 2017

1 commit


12 Jul, 2016

1 commit

  • While using AppArmor, SYS_CAP_RESOURCE is insufficient to call prlimit
    on another task. The only other example of a AppArmor mediating access to
    another, already running, task (ignoring fork+exec) is ptrace.

    The AppArmor model for ptrace is that one of the following must be true:
    1) The tracer is unconfined
    2) The tracer is in complain mode
    3) The tracer and tracee are confined by the same profile
    4) The tracer is confined but has SYS_CAP_PTRACE

    1), 2, and 3) are already true for setrlimit.

    We can match the ptrace model just by allowing CAP_SYS_RESOURCE.

    We still test the values of the rlimit since it can always be overridden
    using a value that means unlimited for a particular resource.

    Signed-off-by: Jeff Mahoney
    Signed-off-by: John Johansen

    Jeff Mahoney
     

28 Apr, 2013

1 commit


10 Apr, 2012

2 commits


04 Apr, 2012

1 commit

  • Linus found that the gigantic size of the common audit data caused a big
    perf hit on something as simple as running stat() in a loop. This patch
    requires LSMs to declare the LSM specific portion separately rather than
    doing it in a union. Thus each LSM can be responsible for shrinking their
    portion and don't have to pay a penalty just because other LSMs have a
    bigger space requirement.

    Signed-off-by: Eric Paris
    Signed-off-by: Linus Torvalds

    Eric Paris
     

28 Feb, 2012

1 commit


08 Sep, 2010

1 commit


02 Aug, 2010

1 commit

  • ipc:
    AppArmor ipc is currently limited to mediation done by file mediation
    and basic ptrace tests. Improved mediation is a wip.

    rlimits:
    AppArmor provides basic abilities to set and control rlimits at
    a per profile level. Only resources specified in a profile are controled
    or set. AppArmor rules set the hard limit to a value
    Signed-off-by: James Morris

    John Johansen