git://git.onelab.eu
/
procprotect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8b63b21
)
Remove possibility of being traced in a trace handler
author
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 19 Aug 2013 00:44:36 +0000
(20:44 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 19 Aug 2013 00:44:36 +0000
(20:44 -0400)
procprotect.c
patch
|
blob
|
history
diff --git
a/procprotect.c
b/procprotect.c
index
74c48b9
..
a56c6b2
100644
(file)
--- a/
procprotect.c
+++ b/
procprotect.c
@@
-72,7
+72,7
@@
struct proc_dir_entry *proc_entry;
static int run_acl(unsigned long ino) {
struct acl_entry *entry;
static int run_acl(unsigned long ino) {
struct acl_entry *entry;
- hlist_for_each_entry_rcu(entry,
+ hlist_for_each_entry_rcu
_notrace
(entry,
&procprotect_hash[ino & (HASH_SIZE-1)],
hlist) {
if (entry->ino==ino) {
&procprotect_hash[ino & (HASH_SIZE-1)],
hlist) {
if (entry->ino==ino) {
@@
-305,6
+305,8
@@
static int __init procprotect_init(void)
INIT_HLIST_HEAD(&procprotect_hash[i]);
}
INIT_HLIST_HEAD(&procprotect_hash[i]);
}
+ add_entry("/proc/sysrq-trigger");
+
aclqpath.name = aclpath;
aclqpath.len = strnlen(aclpath, PATH_MAX);
aclqpath.name = aclpath;
aclqpath.len = strnlen(aclpath, PATH_MAX);
@@
-355,7
+357,6
@@
static int __init procprotect_init(void)
proc_entry = proc_create("procprotect", 0644, NULL, &procprotect_fops);
proc_entry = proc_create("procprotect", 0644, NULL, &procprotect_fops);
- add_entry("/proc/sysrq-trigger");
return ret;
}
return ret;
}