Hello,
I am facing a problem with file locking.
I have process A & process B, writing & reading a plain text data file respectively. I can implement exclusive lock using fcntl() so that when A is in the process of writing the file, B should not read at that instance.
However, I noticed that even if process A has got an exclusive lock on the file, I can open the file manually (say vi) and modify the file.
I tried searching on the net and found an article at http://www.security.nnov.ru/advisories/filelock.asp which says Unix/linux has this problem.
Can someone help me plz?
thanks a lot.
regards, Amit Redij
In a world without fences and walls, who needs windows and gates?