* winsup.h: Define MAX_SID_LEN and new MAX_HOST_NAME.
* fork.cc (fork): Use above defines instead of numerical constants. * shared.cc (sec_user): Ditto. * shared.h (class pinfo): Ditto. * syscall.cc (seteuid): Ditto. * spawn.cc (_spawnve): Ditto. Eliminate conditional. (spawn_guts): Set child->uid = USHRT_MAX when user context will be changed in child process. * uinfo.cc (uinfo_init): Check for myself->uid instead of myself->psid to avoid reloading of /etc/passwd on process startup if ntsec is off. Use above defines instead of numerical constants. * security.cc: Move define for MAX_SID_LEN to winsup.h.
This commit is contained in:
@ -89,8 +89,8 @@ class pinfo
|
||||
The information is derived from the internal_getlogin call
|
||||
when on a NT system. */
|
||||
PSID psid; /* user's SID */
|
||||
char sidbuf[40]; /* buffer for user's SID */
|
||||
char logsrv[256]; /* Logon server, may be fully qualified DNS name */
|
||||
char sidbuf[MAX_SID_LEN]; /* buffer for user's SID */
|
||||
char logsrv[MAX_HOST_NAME]; /* Logon server, may be FQDN */
|
||||
char domain[MAX_COMPUTERNAME_LENGTH+1]; /* Logon domain of the user */
|
||||
|
||||
/* token is needed if sexec should be called. It can be set by a call
|
||||
|
Reference in New Issue
Block a user