install:
install -D -m 755 procprotect.ko /lib/modules/$(KVER)/net/procprotect/procprotect.ko
+ mkdir -p /etc/modules-load.d
+ install -m 644 procprotect.conf /etc/modules-load.d/procprotect.conf
install -m 644 procprotect.service /usr/lib/systemd/system/procprotect.service
+ install -m 755 procprotect.init /usr/sbin/procprotect.init
}
}
- if (!once_only) {
- once_only=1;
- if (init_probes()==-1)
- printk(KERN_CRIT "Could not install procprotect probes. Reload module to retry.");
- }
}
pathname[count]='\0';
add_entry(pathname);
+
+ if (!once_only) {
+ once_only=1;
+ if (init_probes()==-1)
+ printk(KERN_CRIT "Could not install procprotect probes. Reload module to retry.");
+ }
printk(KERN_CRIT "Length of buffer=%d",strlen(pathname));
return count;
}
--- /dev/null
+#!/bin/sh
+
+if [ ! -f /proc/procprotect ]; then
+ echo "Transforward kernel module not loaded"
+else
+ echo "sysrq-trigger" > /proc/procprotect
+fi
+
[Service]
Type=forking
-ExecStart=/sbin/modprobe procprotect
+ExecStart=/usr/sbin/procprotect.init
ControlGroup=cpu:/
[Install]