This is the mail archive of the cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: Repost: Patch, Version 2: UNIX-like permissions on objects
- To: Geoffrey Noer <noer@cygnus.com>, cygwin-developers@sourceware.cygnus.com, DJ Delorie <dj@delorie.com>, Christopher Faylor <cgf@cygnus.com>, Sergey Okhapkin <sos@prospect.com.ru>
- Subject: Re: Repost: Patch, Version 2: UNIX-like permissions on objects
- From: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Date: Thu, 04 Mar 1999 15:07:33 +0100
- Delivered-To: listarch-cygwin-developers@sourceware.cygnus.com
- Delivered-To: mailing list cygwin-developers@sourceware.cygnus.com
- Mailing-List: contact cygwin-developers-help@sourceware.cygnus.com; run by ezmlm
- References: <01BE46C2.29B35190@sos> <36D8F66F.CB411F58@cityweb.de> <19990228222910.A14921@cygnus.com> <36DDBD54.3B6417E8@cityweb.de>
- Sender: cygwin-developers-owner@sourceware.cygnus.com
Corinna Vinschen wrote:
>
> Ok, I have updated from SP3 to SP4 yesterday and now, my `ntsec'-patch
> doesn't work anymore :(. More problems then ever! One core dump after
> the other. I hadn't the time, to check this out, possibly tomorrow, but
> I would already mention the problem. If anyone, who has tried my patch,
> can give me any hint or help:
>
> HEEEEELP!
Hi!
I found the problem, it's really mysterious! Under strange circumstances,
the WinNT function `EqualSid()' smashes, if it has to compare with the
world sid (UID 0 `Everyone'). I have solved this by patching my code to the
following behaviour:
Extract the UID from every SID and compare the resulting int's.
This works on my stand alone workstation, but I need feedback:
Is this an adequate proceeding in NT domains?
I don't want to publish the patched code, 'til I get an informative answer to
this question.
I have solved a second problem. As description, I repost a part of my original mail:
---- repost ----
Remaining problem: NT directories have not only own permissions, but default permissions
for their files, too. The attached patch is not able, to set this rights. If somebody knows
a solution, I would be glad, to hear from you!
---- repost ----
The solution is, to set special flags in the ACE_HEADER struct:
ace->Header.AceFlags |= OBJECT_INHERIT_ACE | CONTAINER_INHERIT_ACE;
This results in the same file permissions as the directory permissions itself.
This is the expected behaviour, IMHO.
Regards,
Corinna