sys: move getpwnam() call to main.c

Pass uid/gid instead of user name to the root dropping function.
This commit is contained in:
Miroslav Lichvar
2015-08-10 15:53:36 +02:00
parent 236576c124
commit 6402350c83
6 changed files with 20 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ extern void SYS_Linux_Initialise(void);
extern void SYS_Linux_Finalise(void);
extern void SYS_Linux_DropRoot(char *user);
extern void SYS_Linux_DropRoot(uid_t uid, gid_t gid);
extern void SYS_Linux_MemLockAll(int LockAll);