PM: some tiny fixes

This commit is contained in:
David van Moolenbroek 2009-09-12 18:36:07 +00:00
parent c72487dc9f
commit ba83b7663d
3 changed files with 4 additions and 5 deletions

View file

@ -54,7 +54,7 @@ PUBLIC int do_exec()
mp->mp_fs_call= PM_EXEC; mp->mp_fs_call= PM_EXEC;
r= notify(FS_PROC_NR); r= notify(FS_PROC_NR);
if (r != OK) if (r != OK)
panic(__FILE__, "do_getset: unable to notify FS", r); panic(__FILE__, "do_exec: unable to notify FS", r);
/* Do not reply */ /* Do not reply */
return SUSPEND; return SUSPEND;

View file

@ -159,6 +159,8 @@ PUBLIC int do_fork_nb()
rmc->mp_flags &= (IN_USE|PRIV_PROC); rmc->mp_flags &= (IN_USE|PRIV_PROC);
rmc->mp_child_utime = 0; /* reset administration */ rmc->mp_child_utime = 0; /* reset administration */
rmc->mp_child_stime = 0; /* reset administration */ rmc->mp_child_stime = 0; /* reset administration */
rmc->mp_exitstatus = 0;
rmc->mp_sigstatus = 0;
rmc->mp_endpoint = child_ep; /* passed back by VM */ rmc->mp_endpoint = child_ep; /* passed back by VM */
for (i = 0; i < NR_ITIMERS; i++) for (i = 0; i < NR_ITIMERS; i++)
rmc->mp_interval[i] = 0; /* reset timer intervals */ rmc->mp_interval[i] = 0; /* reset timer intervals */

View file

@ -212,15 +212,12 @@ PUBLIC int do_getsysinfo()
size_t len; size_t len;
int s, r; int s, r;
/* This call leaks important information (the contents of registers). /* This call leaks important information (the contents of registers). */
* harmless data (such as the load should get their own calls)
*/
if (mp->mp_effuid != 0) if (mp->mp_effuid != 0)
{ {
printf("PM: unauthorized call of do_getsysinfo by proc %d '%s'\n", printf("PM: unauthorized call of do_getsysinfo by proc %d '%s'\n",
mp->mp_endpoint, mp->mp_name); mp->mp_endpoint, mp->mp_name);
sys_sysctl_stacktrace(mp->mp_endpoint); sys_sysctl_stacktrace(mp->mp_endpoint);
sig_proc(mp, SIGEMT);
return EPERM; return EPERM;
} }