public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to disable the default bypass of the ACL permissions checking in Cygwin
@ 2021-05-25 16:44 Sandy
  2021-05-25 19:44 ` Andrey Repin
  0 siblings, 1 reply; 3+ messages in thread
From: Sandy @ 2021-05-25 16:44 UTC (permalink / raw)
  To: cygwin; +Cc: pedro

Hi there,

We are from the NGO Centro de Autonomia Digital (CAD) based in Quito,
Ecuador. We have been using Msys2 to test our project Coyim
(http://github.com/coyim/coyim) in Windows environments.

The tests are currently running on GitHub Actions, using the Windows
Server 2019 Datacenter.

We have one specific test case that is failing because of interesting
behavior in Msys2. The full description of the issue is available at the
following link:

https://github.com/msys2/msys2-runtime/issues/45

Thanks to the help of one of the Msys2 developers, we found that Cygwin
bypasses the checking of the Windows ACL permissions when it runs with
administrative privileges.

We would like to know if it is possible to change this behavior of
Cygwin or at least have his point of view of how we could control the
permissions even in this scenario.

Thank you very much for your help on this, and thanks to all the team
behind the amazing Cygwin product.

Cheers.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to disable the default bypass of the ACL permissions checking in Cygwin
  2021-05-25 16:44 How to disable the default bypass of the ACL permissions checking in Cygwin Sandy
@ 2021-05-25 19:44 ` Andrey Repin
  2021-05-25 20:16   ` Achim Gratz
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Repin @ 2021-05-25 19:44 UTC (permalink / raw)
  To: Sandy, cygwin

Greetings, Sandy!

> We are from the NGO Centro de Autonomia Digital (CAD) based in Quito,
> Ecuador. We have been using Msys2 to test our project Coyim
> (http://github.com/coyim/coyim) in Windows environments.

> The tests are currently running on GitHub Actions, using the Windows
> Server 2019 Datacenter.

> We have one specific test case that is failing because of interesting
> behavior in Msys2. The full description of the issue is available at the
> following link:

> https://github.com/msys2/msys2-runtime/issues/45

> Thanks to the help of one of the Msys2 developers, we found that Cygwin
> bypasses the checking of the Windows ACL permissions when it runs with
> administrative privileges.

That's literally not possible. More likely explanation is that Administrators
group have full access to the object in question.

Please provide the output from icacls and getfacl utilities.

> We would like to know if it is possible to change this behavior of
> Cygwin or at least have his point of view of how we could control the
> permissions even in this scenario.

Unless you can supply an adequate test case, this looks more like
misunderstanding of sort.


-- 
With best regards,
Andrey Repin
Tuesday, May 25, 2021 22:39:27

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to disable the default bypass of the ACL permissions checking in Cygwin
  2021-05-25 19:44 ` Andrey Repin
@ 2021-05-25 20:16   ` Achim Gratz
  0 siblings, 0 replies; 3+ messages in thread
From: Achim Gratz @ 2021-05-25 20:16 UTC (permalink / raw)
  To: cygwin

Andrey Repin via Cygwin writes:
> That's literally not possible. More likely explanation is that Administrators
> group have full access to the object in question.

They don't.  The issue at hand is that Cygwin uses SeBackupPrivilege and
SeRestorePrivilege if otherwise the object in question would not be
accessible.  The moral of the story is to drop those privileges /
capabilities when you don't need them via cygdrop or just don't use an
administrative account that comes with them in the first place.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-25 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 16:44 How to disable the default bypass of the ACL permissions checking in Cygwin Sandy
2021-05-25 19:44 ` Andrey Repin
2021-05-25 20:16   ` Achim Gratz

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).