APFS: drop privileges upon startup

Move SERVICE_LOGIN to rs.h global header so it's accessible for all.
This commit is contained in:
Thomas Veerman
2012-01-30 15:16:20 +00:00
parent 9233fdb359
commit becf700bc2
4 changed files with 12 additions and 12 deletions
-8
View File
@@ -237,14 +237,6 @@ PUBLIC int do_getepinfo()
register struct mproc *rmp;
endpoint_t ep;
/* This call should be moved to DS. */
if (mp->mp_effuid != 0) {
printf("PM: unauthorized call of do_getepinfo_o by proc %d\n",
mp->mp_endpoint);
sys_sysctl_stacktrace(mp->mp_endpoint);
return EPERM;
}
ep = m_in.PM_ENDPT;
for (rmp = &mproc[0]; rmp < &mproc[NR_PROCS]; rmp++) {