Add essential check in case userspace fails to add it
Sapan Bhatia [Tue, 21 May 2013 20:49:20 +0000 (16:49 -0400)]
procprotect.c

index 2672ef8..9fdaab3 100644 (file)
@@ -345,6 +345,7 @@ static int __init procprotect_init(void)
     proc_entry = create_proc_entry("procprotect", 0644, NULL);
     proc_entry->write_proc = procfile_write;
 
+    add_entry("/proc/sysrq-trigger");
     return ret;
 }