lkml.org 
[lkml]   [2010]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 2/3] Security: Implement disablenetwork semantics. (v4)
    On Sun, Jan 10, 2010 at 6:08 PM, Michael Stone <michael@laptop.org> wrote:
    > Paraphrasing Kyle:
    >
    >> Suppose there exist PAM modules which lazily fork background processes.
    >> Now
    >> assume that one of those PAM modules is hooked from /etc/pam.d/su, that
    >> the
    >> module fails closed when the network is unavailable, and that Mallory wins
    >> the race to start the daemon. Boom.
    >
    > I'm not disagreeing that there are configurations of programs, written for
    > kernels without disablenetwork, which cease to be correct on kernels that
    > provide it. However, all this says to me is that people who need to use
    > those
    > configurations probably shouldn't use disablenetwork. (Or that we haven't
    > found
    > exactly the right semantics for disablenetwork yet.)

    With the semantics given, the choice for using disablenetwork is given
    to the unprivileged process, not to the administrator or privileged
    process, so people using these configurations have no choice - the
    malicious local user can just use it anyway.

    I still think requiring a drop of suid abilities would be best - if
    the suid process wants to run in a no-network environment it can still
    disablenetwork itself.


    \
     
     \ /
      Last update: 2010-01-11 00:43    [W:3.565 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site