lkml.org 
[lkml]   [1996]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BEWARE! Linux seteuid is broken!
Date
>As I said before, when I implemented POSIX_SAVED_IDS during the 0.99 (or
>was it 0.13, I don't remember) days, I implemented true POSIX_SAVED_IDS,
>and then I implemented setreuid() and seteuid() to be BSD 4.3
>compatible. The real problem is that BSD 4.4 isn't POSIX_SAVED_IDS
>compatible, and it's also not BSD 4.3 compatible.
[complex analysis of various behaviours deleted]

*cringe*

Let's just implement {s,g}etresuid(), and do the rest with
compatibility libraries. If the kernel allows arbitrary exchange of
ruid, euid and suid, it will be possible to implement any Unix' set*uid
semantics in a library function. We can have the broken POSIX setuid,
4.3BSD set{e,re,}uid, and 4.4BSD set{e,re,}uid as separate functions in
libc, and programs could select semantics at compile time by doing
"#define __BSD43_IDS" etc.

-zefram


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.242 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site