diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-02-03 15:55:20 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-02-03 15:55:20 +0000 |
commit | 153e83c605ece91e9b7e6b15a30591ca218fb9c9 (patch) | |
tree | 6e8caf65d4f144c412e9436dbce61ed7fe0fe8c6 /winsup/cygwin/security.h | |
parent | f0f3ea68f3b3e3a7b9e21eee2572a0d69ea4d563 (diff) | |
download | cygnal-153e83c605ece91e9b7e6b15a30591ca218fb9c9.tar.gz cygnal-153e83c605ece91e9b7e6b15a30591ca218fb9c9.tar.bz2 cygnal-153e83c605ece91e9b7e6b15a30591ca218fb9c9.zip |
* security.h: Add third argument to set_process_privilege.
* autoload.cc: Add OpenThreadToken.
* sec_helper.cc (set_process_privilege): Add and use use_thread
argument.
* security.cc (alloc_sd): Modify call to set_process_privilege.
Remember the result in each process. If failed and file owner is not
the user, fail.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index 7ed0307ce..a2a46a433 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -236,7 +236,7 @@ BOOL get_logon_server (const char * domain, char * server, WCHAR *wserver = NULL /* sec_helper.cc: Security helper functions. */ BOOL __stdcall is_grp_member (__uid32_t uid, __gid32_t gid); -int set_process_privilege (const char *privilege, BOOL enable = TRUE); +int set_process_privilege (const char *privilege, bool enable = true, bool use_thread = false); /* shared.cc: */ /* Retrieve a security descriptor that allows all access */ |