Re: SECURITY.NNOV: file locking and security (group policy DoS on Windows 2000 domain)

From: Seth Arnold (sarnold@wirex.com)
Date: 12/08/01


Date: Fri, 7 Dec 2001 17:15:48 -0800
From: Seth Arnold <sarnold@wirex.com>
To: bugtraq@securityfocus.com


On Fri, Dec 07, 2001 at 11:57:58AM +0300, 3APA3A wrote:
> The way file locks interfere with file access depends on OS. There are 2
> possible situations: moderate and non-moderate file locks. *BSD and
> linux use non-moderate locking, while Windows NT locking is moderate.
> What does it mean? Under Unix file locking is only checked then another
> application tries to lock the file. If application doesn't use file
> locking it will not be affected by file locking.

3APA3A -- close....

A long-time feature of many Unix systems, including Linux (and probably
all the BSDs too, but I don't know this for sure) is mandatory file
locking, implemented in the kernel. It can be turned on using the setgid
bit on regular files.

Look for Documentation/mandatory.txt in the linux kernel source tree. It
has all the gory details on mandary file locking, as it is implemented
in the linux kernel. (Or, was implemented, in 1996.. :)

Cheers!

-- 
People who separate manpages from the programs
they document would steal sheep.  -- apologies to Goudy




Relevant Pages

  • Re: [PATCH] mmu notifiers #v5
    ... design and it requires zero additional locking anywhere (nor linux VM, ... GRU a lot slower _especially_ on your numa systems. ... It populates TLB entries on demand ...
    (Linux-Kernel)
  • Re: [9fans] Do we have a catalog of 9P servers?
    ... 9P doesn't do locking; .u/.l change the protocol. ... function as proxies between Linux systems (or between Linux and a .L ... stopgap mapping whatever semantics you want between 9P2010 and 9P2000. ...
    (comp.os.plan9)
  • Re: Anyone using Samba 3 w/vfp app?
    ... problems Samba used to have are now fixed. ... A Google search on "Foxpro McNett Linux" (no ... Paul McNett was instrumental in getting VFP to run ... It handles it's own locking. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: NFS server broken for -current
    ... At the very least the Linux kernel ... > should reject the locking request instead of simply dropping it. ... none of that applies to you; it only affects a FreeBSD client ... > trying to lock a file on a Linux server. ...
    (freebsd-current)
  • Re: Parallelization on muli-CPU hardware?
    ... Interestingly the linux kernel has been through a similar evolution... ... there can only be one thread in python core at once. ... Yes fine grained locking does have an overhead. ... More locks mean more ...
    (comp.lang.python)