git: 9front

Download patch

ref: 95e67cc34cbae3811ed38b0ae335bd3614b1ddab
parent: be5456851a620fcb2acef9048b8a6ab6f4d5c555
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Jun 9 21:09:52 EDT 2013

kernel: allow sysr1 debugging only for hostowner

--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -17,6 +17,8 @@
 long
 sysr1(ulong*)
 {
+	if(!iseve())
+		error(Eperm);
 	checkpagerefs();
 	return 0;
 }
--