* security.h (sec_user_nih): Make sid1 argument mandatory.
(sec_user): Ditto.
This commit is contained in:
parent
8f31f3f481
commit
bb09410538
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-30 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* security.h (sec_user_nih): Make sid1 argument mandatory.
|
||||||
|
(sec_user): Ditto.
|
||||||
|
|
||||||
2006-03-29 Christopher Faylor <cgf@timesys.com>
|
2006-03-29 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* sigproc.cc (wait_for_sigthread): Use the current user sid when
|
* sigproc.cc (wait_for_sigthread): Use the current user sid when
|
||||||
|
@ -381,15 +381,17 @@ extern bool sec_acl (PACL acl, bool original, bool admins, PSID sid1 = NO_SID,
|
|||||||
int __stdcall NTReadEA (const char *file, const char *attrname, char *buf, int len);
|
int __stdcall NTReadEA (const char *file, const char *attrname, char *buf, int len);
|
||||||
BOOL __stdcall NTWriteEA (const char *file, const char *attrname, const char *buf, int len);
|
BOOL __stdcall NTWriteEA (const char *file, const char *attrname, const char *buf, int len);
|
||||||
|
|
||||||
|
/* Note: sid1 is usually (read: currently always) the current user's
|
||||||
|
effective sid (cygheap->user.sid ()). */
|
||||||
extern inline SECURITY_ATTRIBUTES *
|
extern inline SECURITY_ATTRIBUTES *
|
||||||
sec_user_nih (SECURITY_ATTRIBUTES *sa_buf, PSID sid1 = NULL, PSID sid2 = NULL,
|
sec_user_nih (SECURITY_ATTRIBUTES *sa_buf, PSID sid1, PSID sid2 = NULL,
|
||||||
DWORD access2 = 0)
|
DWORD access2 = 0)
|
||||||
{
|
{
|
||||||
return __sec_user (sa_buf, sid1, sid2, access2, FALSE);
|
return __sec_user (sa_buf, sid1, sid2, access2, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern inline SECURITY_ATTRIBUTES *
|
extern inline SECURITY_ATTRIBUTES *
|
||||||
sec_user (SECURITY_ATTRIBUTES *sa_buf, PSID sid1 = NULL, PSID sid2 = NULL,
|
sec_user (SECURITY_ATTRIBUTES *sa_buf, PSID sid1, PSID sid2 = NULL,
|
||||||
DWORD access2 = 0)
|
DWORD access2 = 0)
|
||||||
{
|
{
|
||||||
return __sec_user (sa_buf, sid1, sid2, access2, TRUE);
|
return __sec_user (sa_buf, sid1, sid2, access2, TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user