server/advapi32: Report administrator ownership by default for registry objects (try 4).
Erich E. Hoover
ehoover at mymail.mines.edu
Tue Feb 19 14:43:38 CST 2013
The attached patch fixes an issue where the Opera installer expects
registry keys to return ownership information (Bug #32904), concluding
the cleanup of [Get|Set]NamedSecurityInfo issues. This patch
addresses the issue by ensuring that NULL owner and group information
is never returned for registry keys and instead returns the
Administrators SID (S-1-5-32-544) when this information is
unavailable, which is sufficient to keep the Opera installer from
encountering an error. The included test shows that this behavior is
the case for system keys on Windows, which returns the Administrators
SID for system registry keys (such as HKLM\Software).
This version of the patch has been updated to move all of the behavior
into the server, allowing all functions querying the ownership to
return the same information. It's worth noting that these ownership
rules only apply to registry key objects ('Key' object type), as it is
perfectly legitimate for some objects to return no ownership
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12030 bytes
Desc: not available
More information about the wine-patches