[lkml]   [2004]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: UID/GID mapping system
    On Wednesday 10 March 2004 17:46, Andreas Dilger wrote:
    > On Mar 10, 2004 15:41 -0600, Jesse Pollard wrote:
    > > On Wednesday 10 March 2004 11:58, Søren Hansen wrote:
    > > > The server can't trust the client as it is now anyway. The client can
    > > > do whatever it wants already. There is no security impact as I see it.
    > >
    > > First, if the server refuses to map uids into what it considers system
    > > (say, those less than 100... or better, 1000) then the daemons that may
    > > be using those uids/gids on the server (or other hosts even) will be
    > > protected from a simple mapping attack. Any attempt to do so will be
    > > detected by the server, blocked, and reported.
    > >
    > > Second, if the various organizations are mapped, then only maps (and
    > > uids/gids) authorized by those maps can be used. Any hanky panky on the
    > > client host will ONLY involve those accounts/uids already on the client.
    > > They will NOT be able to map to accounts/uids that are assigned to the
    > > other organization. Again, attempts to access improper accounts will be
    > > detected by the server, blocked, and reported.
    > I agree with Søren on this. If the client is compromised such that the
    > attacker can manipulate the maps (i.e. root) then there is no reason why
    > the attacker can't just "su" to any UID it wants (regardless of mapping)
    > and NFS is none-the-wiser.

    Absolutely true. The attacker can do the "su" to any uid. Which is why the
    server must be the one to provide the mapping service. The server does not
    have to accept the UID unless it is one of the entries in the authorized map.

    This isolates the penetration to only the accounts authorized to the
    penetrated host.

    And even root can be blocked from access to the server - in fact, root
    could be mapped to any uid by the server (say for the purpose of remote
    configuration files). The penetrated client can only access accounts that
    were authorized by the server map.

    > If the client is trusted to mount NFS, then it is also trusted enough not
    > to use the wrong UID. There is no "more" or "less" safe in this regard.

    It is only trusted to not misuse the uids that are mapped for that client. If
    the client DOES misuse the uids, then only those mapped uids will be affected.
    UIDS that are not mapped for that host will be protected.

    It is to ISOLATE the penetration to the host that this is done. The server
    will not and should not extend trust to any uid not authorized to that host.
    This is what the UID/GID maps on the server provide.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:01    [W:0.020 / U:25.360 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site