From: Sapan Bhatia Date: Tue, 21 May 2013 20:49:20 +0000 (-0400) Subject: Add essential check in case userspace fails to add it X-Git-Tag: procprotect-0.3-4~1 X-Git-Url: http://git.onelab.eu/?p=procprotect.git;a=commitdiff_plain;h=bc1e99f9399432d94750f7b5dc65d0a1d5eddbae Add essential check in case userspace fails to add it --- diff --git a/procprotect.c b/procprotect.c index 2672ef8..9fdaab3 100644 --- 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; }