Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
97c3bb04
Commit
97c3bb04
authored
May 31, 2014
by
Michael Müller
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Stub TokenAppContainerSid in NtQueryInformationToken.
parent
515b8beb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
nt.c
dlls/ntdll/nt.c
+21
-1
winnt.h
include/winnt.h
+17
-0
No files found.
dlls/ntdll/nt.c
View file @
97c3bb04
...
...
@@ -279,7 +279,20 @@ NTSTATUS WINAPI NtQueryInformationToken(
sizeof
(
TOKEN_MANDATORY_LABEL
)
+
sizeof
(
SID
),
/* TokenIntegrityLevel [sizeof(SID) includes one SubAuthority] */
0
,
/* TokenUIAccess */
0
,
/* TokenMandatoryPolicy */
0
/* TokenLogonSid */
0
,
/* TokenLogonSid */
0
,
/* TokenIsAppContainer */
0
,
/* TokenCapabilities */
sizeof
(
TOKEN_APPCONTAINER_INFORMATION
)
+
sizeof
(
SID
),
/* TokenAppContainerSid */
0
,
/* TokenAppContainerNumber */
0
,
/* TokenUserClaimAttributes*/
0
,
/* TokenDeviceClaimAttributes */
0
,
/* TokenRestrictedUserClaimAttributes */
0
,
/* TokenRestrictedDeviceClaimAttributes */
0
,
/* TokenDeviceGroups */
0
,
/* TokenRestrictedDeviceGroups */
0
,
/* TokenSecurityAttributes */
0
,
/* TokenIsRestricted */
0
/* TokenProcessTrustLevel */
};
ULONG
len
=
0
;
...
...
@@ -521,6 +534,13 @@ NTSTATUS WINAPI NtQueryInformationToken(
memcpy
(
psid
,
&
high_level
,
sizeof
(
SID
));
}
break
;
case
TokenAppContainerSid
:
{
TOKEN_APPCONTAINER_INFORMATION
*
container
=
tokeninfo
;
FIXME
(
"QueryInformationToken( ..., TokenAppContainerSid, ...) semi-stub
\n
"
);
container
->
TokenAppContainer
=
NULL
;
}
break
;
default:
{
ERR
(
"Unhandled Token Information class %d!
\n
"
,
tokeninfoclass
);
...
...
include/winnt.h
View file @
97c3bb04
...
...
@@ -3685,6 +3685,19 @@ typedef enum _TOKEN_INFORMATION_CLASS {
TokenUIAccess
,
TokenMandatoryPolicy
,
TokenLogonSid
,
TokenIsAppContainer
,
TokenCapabilities
,
TokenAppContainerSid
,
TokenAppContainerNumber
,
TokenUserClaimAttributes
,
TokenDeviceClaimAttributes
,
TokenRestrictedUserClaimAttributes
,
TokenRestrictedDeviceClaimAttributes
,
TokenDeviceGroups
,
TokenRestrictedDeviceGroups
,
TokenSecurityAttributes
,
TokenIsRestricted
,
TokenProcessTrustLevel
,
MaxTokenInfoClass
}
TOKEN_INFORMATION_CLASS
;
...
...
@@ -4410,6 +4423,10 @@ typedef struct _TOKEN_MANDATORY_LABEL {
SID_AND_ATTRIBUTES
Label
;
}
TOKEN_MANDATORY_LABEL
,
*
PTOKEN_MANDATORY_LABEL
;
typedef
struct
_TOKEN_APPCONTAINER_INFORMATION
{
PSID
TokenAppContainer
;
}
TOKEN_APPCONTAINER_INFORMATION
,
*
PTOKEN_APPCONTAINER_INFORMATION
;
/*
* ACLs of NT
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment