Mark Shellenbaum <mark.shellenb...@sun.com> wrote: > > Nope, but you should be able to just use access(2) to determine if you > > need to add the ACL entry. > > > > But that probably won't work since you won't be running as that user yet > and access(2) would be checking off of a privileged cred.
For this purpose, POSIX propsed eaccess() and Solaris has the flag E_OK. access(2) was designed to allow suid processec to check whether they would be able to access a file in case they have not been called suid. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss