[1098] in Kerberos

home help back first fref pref prev next nref lref last post

Flock problems when porting Kerberos to SYSV

daemon@ATHENA.MIT.EDU (Peter_Van_Epp@cc.sfu.ca)
Wed Sep 19 16:46:40 1990

Date: Wed, 19 Sep 90 12:51:28 PDT
From: Peter_Van_Epp@cc.sfu.ca
To: kerberos@ATHENA.MIT.EDU

I have been trying to bring Kerberos up on both the IBM RT under AIX and
the RS6000 under AIX, and in both cases once I get the code to compile
and install, the database updates die due to flock() differences between
BSD and SYSV. The RT doesn't have flock() at all and it was faked using
fcntl() calls and it looks like the RS6000 does the same thing. The
problem with this is that in order to get an exclusive lock, the file
needs to be open for write (which the database files aren't and so
the update quietly fails without comment!). Is there a way around this
(ie. a PD non kernel implementation of flock()!) that I am either not
seeing or don't know about? One solution that I see is changing all the
open calls to open the files r/w, which is less than good from a security
point of view should at least let it work (or is there something I'm not
seeing there as well?) any other suggestions?
 
Peter_Van_Epp@cc.sfu.ca

home help back first fref pref prev next nref lref last post