Re: [PATCH] Completely honor prctl(PR_SET_KEEPCAPS, 1)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 8 May 2002 21:17:39 +0100 (BST)


> prtctl(PR_SET_KEEPCAPS, 1)
> setuid(uid)
> setgid(gid)
>
> The end result is exactly the same. I'm trying to envision how this patch
> would change security in a negative way. I keep coming back to the Unix
> idea of "don't be smarter than the admin; don't try to protect root from
> himself".
>
> Maybe we could enchance PR_SET_KEEPCAPS so that:
>
> prtctl(PR_SET_KEEPCAPS, 2) kept both the permitted and the effective caps.

If thats the concern (and its a fair one) then just fix 2.5 not 2.4. 2.4
stuff will need to do the usermode fixes anyway due to old releases
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/