diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-04-20 20:36:13 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-04-20 20:36:13 +0000 |
commit | 3c8e92d9fc43e7b8c8e5ad4a0235599d7b285274 (patch) | |
tree | 8f851fdf75dc689ad06eab7c8e0c1326811fdb12 /winsup/cygwin/security.h | |
parent | b9815dc3dc2e94f94132f098596d0de5f0af1d1c (diff) | |
download | cygnal-3c8e92d9fc43e7b8c8e5ad4a0235599d7b285274.tar.gz cygnal-3c8e92d9fc43e7b8c8e5ad4a0235599d7b285274.tar.bz2 cygnal-3c8e92d9fc43e7b8c8e5ad4a0235599d7b285274.zip |
* security.cc (set_process_privileges): Swap out.
* sec_helper.cc (set_process_privilege): Rename from
`set_process_privileges'. Takes the privilege to enable or disable
as parameter now.
* security.h: Add prototype for `set_process_privileges'.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index b83e3101b..3c1f75f49 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -45,6 +45,7 @@ BOOL __stdcall is_grp_member (uid_t uid, gid_t gid); * logsrv may be NULL, in this case only the local system is used for lookup. * The buffer for ret_sid (40 Bytes) has to be allocated by the caller! */ BOOL __stdcall lookup_name (const char *, const char *, PSID); +int set_process_privilege (const char *privilege, BOOL enable = TRUE); extern inline int get_uid_from_sid (PSID psid) { return get_id_from_sid (psid, FALSE);} extern inline int get_gid_from_sid (PSID psid) { return get_id_from_sid (psid, TRUE); } |