I've just found a need for mandatory locking in Vinum, and I'm
wondering how to implement it.  If I understand things correctly, our
fcntl locking doesn't perform mandatory locking, though System V does
if you set the file permissions appropriately.

Questions:

1.  Do we have some form of mandatory locking?  If so, what is it?

2.  Would it make sense to implement System V's fcntl semantics?
    They're rather tacky: you set the setgid bit and reset the group
    exec bit of the file permissions.

3.  Alternatively (or additionally), would it make sense to have an
    additional fcntl function which performs mandatory locking?

I think that it's probably a good idea to implement (3), and also to
do (2), possibly subject to a sysctl knob.

Greg
--
See complete headers for address, home page and phone numbers
finger g...@lemis.com for PGP public key


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to