> I did manage to cobble together something that at least switches
> to users properly… search for USE_CUSTOM_USERSWITCH or userswitch in
> http://www.mirbsd.org/cvs.cgi/src/usr.bin/calendar/calendar.c?rev=HEAD
> combined with…
> ...

Wouldn't using setuid() suffice? Yes, I know setusercontext() does more, but in
this case we only need to make sure the right user opens the file. Or what am I
missing?

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De
Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org

Reply via email to