delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/07/25/10:41:46

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 25 Jul 2001 16:40:40 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygdev <cygwin-developers AT cygwin DOT com>
Subject: Re: NTSEC users: Please test
Message-ID: <20010725164040.M490@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygdev <cygwin-developers AT cygwin DOT com>
References: <20010716004416 DOT O25442 AT cygbert DOT vinschen DOT de> <s1sitgh9lz0 DOT fsf AT jaist DOT ac DOT jp>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <s1sitgh9lz0.fsf@jaist.ac.jp>; from fujieda@jaist.ac.jp on Wed, Jul 25, 2001 at 10:28:35PM +0900

On Wed, Jul 25, 2001 at 10:28:35PM +0900, Kazuhiro Fujieda wrote:
> >>> On Mon, 16 Jul 2001 00:44:16 +0200
> >>> Corinna Vinschen <vinschen AT redhat DOT com> said:
> 
> > I think I found how to do it and I implemented it now that way:
> > 
> > - The DELETE permission is never used.
> > - The FILE_DELETE_CHILD permission is only set on directories
> >   if user (or group or others) has write and execute permission.
> >   This reflects the POSIX permission to delete a file or subdirectory
> >   only if w and x bits are both set.
> > - If S_ISVTX bit should be set the FILE_DELETE_CHILD permission isn't
> >   set for "others" even if they have write and execute bit set. This
> >   seems to match the POSIX behaviour now as close as possible.
> 
> This way can't allow us to delete files created in the directory
> with the special ACE, the full rights of the "creator owner".
> 
> The default temporary directory is C:/TEMP with the ACE on NT4.0.
> The ACE is used to realize the semantics like the S_ISVTX bit on UNIX.
> So we should be able to freely operate files created by ourselves
> in the directory. But we can't delete them created by the new DLL.
> 
> I propose ntsec adds the DELETE permission of the owner to files
> created in such directories.

I'm partly convinced. I have a slight problem, though. This
would actually require to read the directory permissions to
set the correct file permissions... which waists lot of time.

Would it perhaps be ok to add the DELETE permission to a files
owner ACE always? That wouldn't exactly match the UNIX way but
it would be a close subset, perhaps.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019