From: Chris Davies on
On 2010-02-05, Chris Davies <chris-usenet(a)roaima.co.uk> wrote:
> You're looking in the wrong place. *nix-based systems /do/ provide
> locking, but it's rarely anything to do with permissions. See flock(1),
> flock(2), and lockf(3) for the relevant documentation.


unruh <unruh(a)wormhole.physics.ubc.ca> wrote:
> man 2 flock
> flock - apply or remove an advisory lock on an open file

Yes, agreed. But also from lockf(3):

There are also locks.txt and mandatory-locking.txt in the kernel
source directory Documentation/filesystems

If you follow that through, and google a (very)
short while, you'll come across pages such as this,
http://www.hackinglinuxexposed.com/articles/20030623.html, "Mandatory
Locking can enforce file locks at the kernel level". (The application
must still explicitly apply the lock itself, but it becomes mandatory.)

Chris
From: unruh on
On 2010-02-06, Chris Davies <chris-usenet(a)roaima.co.uk> wrote:
> On 2010-02-05, Chris Davies <chris-usenet(a)roaima.co.uk> wrote:
>> You're looking in the wrong place. *nix-based systems /do/ provide
>> locking, but it's rarely anything to do with permissions. See flock(1),
>> flock(2), and lockf(3) for the relevant documentation.
>
>
> unruh <unruh(a)wormhole.physics.ubc.ca> wrote:
>> man 2 flock
>> flock - apply or remove an advisory lock on an open file
>
> Yes, agreed. But also from lockf(3):
>
> There are also locks.txt and mandatory-locking.txt in the kernel
> source directory Documentation/filesystems
>
> If you follow that through, and google a (very)
> short while, you'll come across pages such as this,
> http://www.hackinglinuxexposed.com/articles/20030623.html, "Mandatory
> Locking can enforce file locks at the kernel level". (The application
> must still explicitly apply the lock itself, but it becomes mandatory.)

OK, it is possible, but not advised, for all the reasons listed in that
article.
>
> Chris
From: Chris Davies on
unruh <unruh(a)wormhole.physics.ubc.ca> wrote:
> OK, it is possible, but not advised, for all the reasons listed in that
> article.

Agreed.

Chris
First  |  Prev  | 
Pages: 1 2 3
Prev: nice bandwidth usage
Next: unexplained bianry "diff"