Subject: Re: protection bits
To: None <jmarin@pyy.jmp.fi>
From: Mike Long <mikel@shore.net>
List: tech-kern
Date: 02/12/1998 02:58:21
>Date: Thu, 12 Feb 1998 09:54:19 +0200
>From: Jukka Marin <jmarin@pyy.jmp.fi>
>
>On Thu, Feb 12, 1998 at 02:48:15AM -0500, Mike Long wrote:
>> 2.3.2 file access permissions:
>> ...
>> (a) The file permission bits of a file contain read, write, and
>>     execute/search permissions for the file owner class, file group
>>     class, and file other class.
>> (b) Access is granted if...the requested access permission bit is set
>>     for the class (file owner class, file group class, or file other
>>     class) to which the process belongs...; otherwise, access is
>>     denied.
>
>Errr... does this mean NetBSD isn't posix compliant, then?  If the group
>bits deny access, but other bits allow access, NetBSD denies access to
>the file.

No, because if the process belongs to the file group class *only*
those permission bits apply.  Owner and other bits are irrelevant.
The classes are defined such that the process can belong to only one
of them at any given time.
-- 
Mike Long <mikel@shore.net>                http://www.shore.net/~mikel
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken