Discussion:
Potential Enhancement Of 'noacl'?
Bryan Berns
2015-04-17 18:11:29 UTC
Permalink
Wasn't sure which mailing list I should throw this on so I apologize
if this is the wrong one -- just let me know for future purposes.

At least for my internal use, I plan to create a patch that will allow
me to conditionally force a permission set for a particular mount
point -- like an enhanced "noacl". I was thinking about adding an
option after noacl[=XXX] where XXX would force XXX as the returned
permissions for any file on that mount point.

Why would someone want to do this crazy thing? In short, I continue
to struggle with the current Cygwin permissions handling for certain
drives where programs do sanity checks on group readability (e.g.,
ssh). Our drives have ACEs for various admin groups. Regardless of
various philosophical viewpoints on file system administration, that's
how it is for us and it's not going to change. I believe a select
group of others might be in this same boat.

The only other alternative that would work for us to would be read a
custom list of SIDS to ignore in group permission calculations but I
already know Corinna is not a fan of that.

Would this (the noacl thing) be something that we'd be potentially
willing to incorporate into the codebase? If I know ahead of time,
I'll make sure I address some other artifacts (user guide
documentation, etc).

Thanks,

Bryan
Corinna Vinschen
2015-04-17 18:56:06 UTC
Permalink
Post by Bryan Berns
Wasn't sure which mailing list I should throw this on so I apologize
if this is the wrong one -- just let me know for future purposes.
At least for my internal use, I plan to create a patch that will allow
me to conditionally force a permission set for a particular mount
point -- like an enhanced "noacl". I was thinking about adding an
option after noacl[=XXX] where XXX would force XXX as the returned
permissions for any file on that mount point.
I'm not out-of-the-box enthusiastic about it...
Post by Bryan Berns
Why would someone want to do this crazy thing? In short, I continue
to struggle with the current Cygwin permissions handling for certain
drives where programs do sanity checks on group readability (e.g.,
ssh).
That puzzles me. OpenSSH is upstream Cygwin-aware, and the code skips
permission checks on files if the underlying filesystem does not support
permissions (e.g. noacl or FAT FS). What problem do you have in real
life with noacl?
Post by Bryan Berns
Would this (the noacl thing) be something that we'd be potentially
willing to incorporate into the codebase? If I know ahead of time,
I'll make sure I address some other artifacts (user guide
documentation, etc).
I'd like to discuss this first.. But, alas, Red Tape rulez. If you
want to provide code, you'll have to sign a copyright assignment.
Please have a look at https://cygwin.com/contrib.html. It contains some
description and a pointer to the assignment text.


Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
Bryan Berns
2015-04-17 19:02:10 UTC
Permalink
On Fri, Apr 17, 2015 at 2:56 PM, Corinna Vinschen
Post by Corinna Vinschen
Post by Bryan Berns
Why would someone want to do this crazy thing? In short, I continue
to struggle with the current Cygwin permissions handling for certain
drives where programs do sanity checks on group readability (e.g.,
ssh).
That puzzles me. OpenSSH is upstream Cygwin-aware, and the code skips
permission checks on files if the underlying filesystem does not support
permissions (e.g. noacl or FAT FS). What problem do you have in real
life with noacl?
Hmm... good question. I honestly not sure I put it to a practical test
-- I just saw it was reporting group read via 'ls -l' and stopped
there. I'll give it a shot on Monday. You may have made my day.... I
really didn't *want* to do what I was proposing :P
Corinna Vinschen
2015-04-17 19:09:50 UTC
Permalink
Post by Bryan Berns
On Fri, Apr 17, 2015 at 2:56 PM, Corinna Vinschen
Post by Corinna Vinschen
Post by Bryan Berns
Why would someone want to do this crazy thing? In short, I continue
to struggle with the current Cygwin permissions handling for certain
drives where programs do sanity checks on group readability (e.g.,
ssh).
That puzzles me. OpenSSH is upstream Cygwin-aware, and the code skips
permission checks on files if the underlying filesystem does not support
permissions (e.g. noacl or FAT FS). What problem do you have in real
life with noacl?
Hmm... good question. I honestly not sure I put it to a practical test
-- I just saw it was reporting group read via 'ls -l' and stopped
there. I'll give it a shot on Monday. You may have made my day.... I
really didn't *want* to do what I was proposing :P
Heh :)

If you still find a problem when using ssh on a noacl filesystem, I'd
lean towards fixing ssh in that case.


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