git://git.onelab.eu
/
procprotect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add essential check in case userspace fails to add it
[procprotect.git]
/
procprotect.c
diff --git
a/procprotect.c
b/procprotect.c
index
2672ef8
..
9fdaab3
100644
(file)
--- a/
procprotect.c
+++ b/
procprotect.c
@@
-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;
}