OSDN Git Service

* sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
authorcorinna <corinna>
Sun, 12 Jan 2003 11:38:50 +0000 (11:38 +0000)
committercorinna <corinna>
Sun, 12 Jan 2003 11:38:50 +0000 (11:38 +0000)
commit647ab30694ba965d8df2c83f7b4b7033db8c74a3
tree5520bd36a1701e410099e6c5e69612ecdb2b46ba
parent0e34f6fbd087eae649107b6b28808c8ddaa81cc4
* sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
(setacl): Start the search for a matching default at the next entry.
Invalidate the type of merged entries instead of clearing it.
Use well_known_creator for default owner and owning group and do
not try to merge non-default and default entries in these cases.
(getacl): Recognize well_known_creator for default owner and group.
(acl_worker): Improve errno settings and streamline the nontsec case.
* security.cc (write_sd): Remove the call to set_process_privilege.
(alloc_sd): If the owner changes, call set_process_privilege and return
immediately on failure. Change inheritance rules: on new directories add
inherit only allow ACEs for creator_owner, creator_group and everyone.
Preserve all inheritances through chmod and chown calls. Introduce
isownergroup to implement the uid == gid case, to keep the inheritance
code simple. Do not initialize owner_sid and group_sid and stop using
the variable psd.
winsup/cygwin/ChangeLog
winsup/cygwin/sec_acl.cc
winsup/cygwin/security.cc