* security.h (cygpriv_idx): Add privileges new in Vista.

* security.cc (sys_privs): Ditto.
	* sec_helper.cc (cygpriv): Ditto.  Fix comment.
This commit is contained in:
Corinna Vinschen 2006-11-01 09:00:14 +00:00
parent 87abdb3df9
commit b904c35100
4 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2006-11-01 Corinna Vinschen <corinna@vinschen.de>
* security.h (cygpriv_idx): Add privileges new in Vista.
* security.cc (sys_privs): Ditto.
* sec_helper.cc (cygpriv): Ditto. Fix comment.
2006-10-31 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (struct user_heap_info): Add slop member.

View File

@ -344,7 +344,7 @@ got_it:
#undef DOMLEN
#endif //unused
/* Order must be same as cygperm_idx in winsup.h. */
/* Order must be same as cygpriv_idx in security.h. */
static const char *cygpriv[] =
{
SE_CREATE_TOKEN_NAME,
@ -376,7 +376,11 @@ static const char *cygpriv[] =
SE_MANAGE_VOLUME_NAME,
SE_IMPERSONATE_NAME,
SE_ENABLE_DELEGATION_NAME,
SE_SYNC_AGENT_NAME
SE_SYNC_AGENT_NAME,
SE_RELABEL_NAME,
SE_INCREASE_WORKING_SET_NAME,
SE_TIME_ZONE_NAME,
SE_CREATE_SYMBOLIC_LINK_NAME
};
const LUID *

View File

@ -614,7 +614,10 @@ static const cygpriv_idx sys_privs[] = {
SE_UNDOCK_PRIV,
SE_MANAGE_VOLUME_PRIV,
SE_IMPERSONATE_PRIV,
SE_CREATE_GLOBAL_PRIV
SE_CREATE_GLOBAL_PRIV,
SE_INCREASE_WORKING_SET_PRIV,
SE_TIME_ZONE_PRIV,
SE_CREATE_SYMBOLIC_LINK_PRIV
};
#define SYSTEM_PRIVILEGES_COUNT (sizeof sys_privs / sizeof *sys_privs)

View File

@ -280,6 +280,10 @@ enum cygpriv_idx {
SE_IMPERSONATE_PRIV,
SE_ENABLE_DELEGATION_PRIV,
SE_SYNC_AGENT_PRIV,
SE_RELABEL_PRIV,
SE_INCREASE_WORKING_SET_PRIV,
SE_TIME_ZONE_PRIV,
SE_CREATE_SYMBOLIC_LINK_PRIV,
SE_NUM_PRIVS
};