a6c5528e96
Change-Id: I5421646713e74562400e705b4a0f8b99f1325d64
24 lines
398 B
C
24 lines
398 B
C
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include "namespace.h"
|
|
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
int setuid(uid_t usr)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.m_lc_pm_setuid.uid = usr;
|
|
return(_syscall(PM_PROC_NR, PM_SETUID, &m));
|
|
}
|
|
|
|
int seteuid(uid_t usr)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.m_lc_pm_setuid.uid = usr;
|
|
return(_syscall(PM_PROC_NR, PM_SETEUID, &m));
|
|
}
|