On Sun, 17 Sep 2000, Adrian Filipi-Martin wrote: > I recently ran into revelant problem with /dev/stdout, while > working on some software under linux that expected /dev/stdout as an > argument instead of using stdout. > > Using the device file breaks, if the process is suid to a non-root > user. This is because it cannot open /dev/stdout, which is owned by your > UID and not the EUID of the process to which the device was passed. My > solution was to add the "-" hack and use the existing open descriptor. Um, open on fdesc devices doesn't check either uid. It just checks the access mode. Perhaps the software expected /dev/stdout to for read-write like a tty would be. Then opening /dev/stdout would fail for normal shell output redirection which only opens for writing. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Fdescfs updates--coming to a devfs n... Ben Smithurst
- Re: Fdescfs updates--coming to a dev... Poul-Henning Kamp
- Re: Fdescfs updates--coming to ... Robert Withrow
- Re: Fdescfs updates--coming... Poul-Henning Kamp
- Re: Fdescfs updates--coming to ... Mike Meyer
- Re: "!.*" [ was: Fdes... patl
- Re: Fdescfs updates--coming to ... Bjoern Fischer
- Re: Fdescfs updates--coming to ... Brian Somers
- Re: superduperopen(3) (was:... Gerhard Sittig
- Re: Fdescfs updates--coming to a dev... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to ... Bruce Evans
- Re: Fdescfs updates--coming... Adrian Filipi-Martin
- Re: Fdescfs updates--coming to a devfs n... Frank Mayhar
- Re: Fdescfs updates--coming to a devfs n... John Baldwin
- Re: Fdescfs updates--coming to a devfs n... Garance A Drosihn
- Re: Fdescfs updates--coming to a devfs near you! Robert Watson
- Re: Fdescfs updates--coming to a devfs near you! Johnny Eriksson
- /proc & /dev/std* [Was: Fdescfs updates--com... Konstantin Chuguev
- Re: Fdescfs updates--coming to a devfs near you! Robert Withrow
- Re: Fdescfs updates--coming to a devfs near you! Danny Braniss
- Re: Fdescfs updates--coming to a devfs near you! John Baldwin