Path: utzoo!attcan!uunet!samsung!sdd.hp.com!decwrl!shelby!CC.SFU.CA!Peter_Van_Epp From: Peter_Van_Epp@CC.SFU.CA Newsgroups: comp.protocols.kerberos Subject: Flock problems when porting Kerberos to SYSV Message-ID: <2511586@cc.sfu.ca> Date: 19 Sep 90 19:51:28 GMT Sender: daemon@shelby.Stanford.EDU Organization: The Internet Lines: 15 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