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
5fb2e68b
Commit
5fb2e68b
authored
Dec 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Added access rights mapping to token objects.
parent
03f46e13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
token.c
server/token.c
+11
-1
No files found.
server/token.c
View file @
5fb2e68b
...
@@ -106,6 +106,7 @@ struct sid_and_attributes
...
@@ -106,6 +106,7 @@ struct sid_and_attributes
};
};
static
void
token_dump
(
struct
object
*
obj
,
int
verbose
);
static
void
token_dump
(
struct
object
*
obj
,
int
verbose
);
static
unsigned
int
token_map_access
(
struct
object
*
obj
,
unsigned
int
access
);
static
void
token_destroy
(
struct
object
*
obj
);
static
void
token_destroy
(
struct
object
*
obj
);
static
const
struct
object_ops
token_ops
=
static
const
struct
object_ops
token_ops
=
...
@@ -118,7 +119,7 @@ static const struct object_ops token_ops =
...
@@ -118,7 +119,7 @@ static const struct object_ops token_ops =
NULL
,
/* satisfied */
NULL
,
/* satisfied */
no_signal
,
/* signal */
no_signal
,
/* signal */
no_get_fd
,
/* get_fd */
no_get_fd
,
/* get_fd */
no_map_access
,
/* map_access */
token_map_access
,
/* map_access */
no_lookup_name
,
/* lookup_name */
no_lookup_name
,
/* lookup_name */
no_close_handle
,
/* close_handle */
no_close_handle
,
/* close_handle */
token_destroy
/* destroy */
token_destroy
/* destroy */
...
@@ -131,6 +132,15 @@ static void token_dump( struct object *obj, int verbose )
...
@@ -131,6 +132,15 @@ static void token_dump( struct object *obj, int verbose )
/* FIXME: dump token members */
/* FIXME: dump token members */
}
}
static
unsigned
int
token_map_access
(
struct
object
*
obj
,
unsigned
int
access
)
{
if
(
access
&
GENERIC_READ
)
access
|=
TOKEN_READ
;
if
(
access
&
GENERIC_WRITE
)
access
|=
TOKEN_WRITE
;
if
(
access
&
GENERIC_EXECUTE
)
access
|=
STANDARD_RIGHTS_EXECUTE
;
if
(
access
&
GENERIC_ALL
)
access
|=
TOKEN_ALL_ACCESS
;
return
access
&
~
(
GENERIC_READ
|
GENERIC_WRITE
|
GENERIC_EXECUTE
|
GENERIC_ALL
);
}
static
SID
*
security_sid_alloc
(
const
SID_IDENTIFIER_AUTHORITY
*
idauthority
,
int
subauthcount
,
const
unsigned
int
subauth
[]
)
static
SID
*
security_sid_alloc
(
const
SID_IDENTIFIER_AUTHORITY
*
idauthority
,
int
subauthcount
,
const
unsigned
int
subauth
[]
)
{
{
int
i
;
int
i
;
...
...
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