From: Ben Gras Date: Tue, 17 Feb 2009 12:09:59 +0000 (+0000) Subject: help debugging cause of these sometimes odd calls. X-Git-Tag: v3.1.4~105 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/cppcheck-error.log?a=commitdiff_plain;h=733d6c1ef600a0c7bc8d2522d5980a599f9671ef;p=minix.git help debugging cause of these sometimes odd calls. --- diff --git a/servers/pm/misc.c b/servers/pm/misc.c index 82569a935..681e3cbe9 100644 --- a/servers/pm/misc.c +++ b/servers/pm/misc.c @@ -93,6 +93,7 @@ PUBLIC int do_freemem() { printf("PM: unauthorized call of do_freemem by proc %d\n", mp->mp_endpoint); + sys_sysctl_stacktrace(mp->mp_endpoint); return EPERM; } @@ -120,6 +121,7 @@ PUBLIC int do_procstat() { printf("PM: unauthorized call of do_procstat by proc %d\n", mp->mp_endpoint); + sys_sysctl_stacktrace(mp->mp_endpoint); return EPERM; } @@ -217,6 +219,7 @@ PUBLIC int do_getsysinfo() { printf("PM: unauthorized call of do_getsysinfo by proc %d '%s'\n", mp->mp_endpoint, mp->mp_name); + sys_sysctl_stacktrace(mp->mp_endpoint); sig_proc(mp, SIGEMT); return EPERM; } @@ -313,6 +316,7 @@ PUBLIC int do_getprocnr() { printf("PM: unauthorized call of do_procstat by proc %d\n", mp->mp_endpoint); + sys_sysctl_stacktrace(mp->mp_endpoint); return EPERM; } @@ -373,6 +377,7 @@ PUBLIC int do_getpuid() { printf("PM: unauthorized call of do_getpuid by proc %d\n", mp->mp_endpoint); + sys_sysctl_stacktrace(mp->mp_endpoint); return EPERM; }