public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-developers@cygwin.com
Subject: Re: Cygwin AF_UNIX emulation
Date: Mon, 20 Oct 2014 10:44:00 -0000	[thread overview]
Message-ID: <20141020104440.GB3174@calimero.vinschen.de> (raw)
In-Reply-To: <544281A1.1050203@t-online.de>

[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]

On Oct 18 17:05, Christian Franke wrote:
> Corinna Vinschen wrote:
> >   SE_CHANGE_NOTIFY_NAME
> >
> >     Required to receive notifications of changes to files or
> >     directories. This privilege also causes the system to skip all
> >     traversal access checks. It is enabled by default for all users.
> >
> >     User Right: Bypass traverse checking.
> 
> An unexpected "feature", IMO.
> 
> Hmm.... after removing this privilege, Cygwin returns garbage stat() info,
> for any path below the 'forbidden directory':
> 
> $ uname -srvm
> CYGWIN_NT-6.1-WOW64 1.7.33s(0.278/5/3) 20141017 14:39:49 i686
> 
> $ cd /var/spool/postfix/
> 
> $ ls -ld private
> drwx------+ 1 postfix none 0 Oct 18 16:39 private
> 
> $ ls -l private
> ls: cannot open directory private: Permission denied
> 
> $ ls -l private/smtp
> srw-rw-rw- 1 postfix none 0 Oct 18 16:39 private/smtp
> 
> $ cygdrop -p ChangeNotify ls -l private/smtp
> -rw-r----- 1 Unknown+User Unknown+Group 6991943424855812584 Jun 23 1909
> private/smtp
> 
> $ ls -l private/no/such/path
> ls: cannot access private/no/such/path: No such file or directory
> 
> $ cygdrop -p ChangeNotify ls -l private/no/such/path
> -rw-r----- 1 Unknown+User Unknown+Group 6991943424855812584 Jun 23 1909
> private/no/such/path

That should work better now.  I just applied a patch to CVS.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-10-20 10:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 21:34 Christian Franke
2014-10-17 11:49 ` Corinna Vinschen
2014-10-17 19:29   ` Christian Franke
2014-10-18 10:35     ` Corinna Vinschen
2014-10-18 15:05       ` Christian Franke
2014-10-20 10:44         ` Corinna Vinschen [this message]
2014-10-20 10:44       ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141020104440.GB3174@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin-developers@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).