shithub: riscv

Download patch

ref: 177c175fdaa0718ee3479560be4366810993c702
parent: de463408482b3d1e5c361866ac7500c07c5f4e96
author: cinap_lenrek <[email protected]>
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;
 }