Add essential check in case userspace fails to add it
[procprotect.git] / 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;
 }