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
5c3e919b
Commit
5c3e919b
authored
Jul 30, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Support TokenIntegrityLevel.
parent
d5e5b43c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
nt.c
dlls/ntdll/nt.c
+15
-1
No files found.
dlls/ntdll/nt.c
View file @
5c3e919b
...
...
@@ -276,7 +276,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
0
,
/* TokenAccessInformation */
0
,
/* TokenVirtualizationAllowed */
0
,
/* TokenVirtualizationEnabled */
0
,
/* TokenIntegrityLevel
*/
sizeof
(
TOKEN_MANDATORY_LABEL
)
+
sizeof
(
SID
),
/* TokenIntegrityLevel [sizeof(SID) includes one SubAuthority]
*/
0
,
/* TokenUIAccess */
0
,
/* TokenMandatoryPolicy */
0
/* TokenLogonSid */
...
...
@@ -507,6 +507,20 @@ NTSTATUS WINAPI NtQueryInformationToken(
FIXME
(
"QueryInformationToken( ..., TokenSessionId, ...) semi-stub
\n
"
);
}
break
;
case
TokenIntegrityLevel
:
{
/* report always "S-1-16-12288" (high mandatory level) for now */
static
const
SID
high_level
=
{
SID_REVISION
,
1
,
{
SECURITY_MANDATORY_LABEL_AUTHORITY
},
{
SECURITY_MANDATORY_HIGH_RID
}};
TOKEN_MANDATORY_LABEL
*
tml
=
tokeninfo
;
PSID
psid
=
tml
+
1
;
tml
->
Label
.
Sid
=
psid
;
tml
->
Label
.
Attributes
=
SE_GROUP_INTEGRITY
|
SE_GROUP_INTEGRITY_ENABLED
;
memcpy
(
psid
,
&
high_level
,
sizeof
(
SID
));
}
break
;
default:
{
ERR
(
"Unhandled Token Information class %d!
\n
"
,
tokeninfoclass
);
...
...
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