Re: Capabilities bug(s) / implementation inconsistencies

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue May 23 2000 - 20:15:45 EDT

  • Next message: t.n.vanderleeuw@chello.nl: "Re: pre9-4 OOM VM lockups"

    > /* Clear the capabilities if we switch to a non-root user */
    > if (current->uid)
    > cap_clear(current->cap_effective);
    > else
    > current->cap_effective = current->cap_permitted;

    This is a bug. We now have capability flags to indicate 'capability aware'
    applications and these should be getting checked as they now do in
    setuid and friends

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Tue May 23 2000 - 20:20:08 EDT