[2/5] server: A new function "set_sd_defaults_from_token" that sets the security descriptor along with a token that will be used to gather defaults, instead of always using the primary token.

Joris van der Wel joris at jorisvanderwel.com
Tue Jul 8 09:26:53 CDT 2014


server: A new function "set_sd_defaults_from_token" that sets the
security descriptor along with a token that will be used to gather
defaults, instead of always using the primary token.

Some objects take their defaults not from a primary token but from a
different one (such as from the impersonation token or the process
token).
This function can be used to create the various set_sd implementations
for the objects that need it.
As a bonus, a NULL token will skip setting any defaults, this is
useful for object implemenations that would like to set their defaults
_only_ upon creation.

---
 server/object.c | 23 +++++++++++++++--------
 server/object.h |  2 ++
 2 files changed, 17 insertions(+), 8 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-server-A-new-function-set_sd_defaults_from_token-tha.patch
Type: application/octet-stream
Size: 4247 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140708/91a51631/attachment.obj>


More information about the wine-patches mailing list