Prev: nice bandwidth usage
Next: unexplained bianry "diff"
From: Chris Davies on 6 Feb 2010 09:49 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 6 Feb 2010 13:10 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 6 Feb 2010 15:00
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 |