[lkml]   [2012]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Add PR_{GET,SET}_NO_NEW_PRIVS to prevent execve from granting privs
    On Fri, Jan 13, 2012 at 11:00 AM, Andy Lutomirski <> wrote:
    > Changing it to fail the exec when a transition would occur will make
    > seccomp considerably less useful to selinux users -- the presence of
    > MAC policy on a program (regardless of what that policy is) will make
    > it unusable inside a sandbox.

    I don't agree. I think that's exactly what we want sandboxing for, to
    avoid any kind of subtle security issues.

    And in 99.99% of all sandboxes, you would never ever want to execute
    something with a different MAC policy on it. In fact, most of the
    whole point of the sandboxing tends to be to make sure that the user
    stays inside the exact *small* environment that was provided just for
    that thing.

    So I bet the google chrome people are not at all interested in
    "running random binaries", and might want execve() very much for
    "running some specific binaries that we ship with or install from the

    So I really think that the *only* valid model is the "fail the execve
    on any changes", not the "mnt-nosuid" approach of trying to run things
    with the wrong permissions and get perhaps odd results. And I think it
    works even - and perhaps *especially* - in models like selinux or
    apparmor that do have a lot of "implicit MAC knowledge" on specific


     \ /
      Last update: 2012-01-13 20:15    [W:0.020 / U:87.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site