--- /dev/null
+class nodo::subsystem::grsec {
+ include nodo::utils::security::grsec
+
+ nodo::subsystem::sysctl::entry { 'kernel.grsecurity.rwxmap_logging':
+ value => 0,
+ }
+
+ nodo::subsystem::sysctl::entry { 'kernel.grsecurity.grsec_lock':
+ value => 1,
+ }
+}
--- /dev/null
+class nodo::utils::security::grsec {
+ package { [
+ # The package with the specific image version might not be used
+ # but right now apt is complaining of unmet dependencies when
+ # trying to install only the metapackage maybe because both are
+ # on jessie-backports. This might chance in the near future.
+ 'linux-image-4.7.0-1-grsec-amd64',
+ 'linux-image-grsec-amd64',
+ 'paxtest',
+ ]:
+ ensure => present,
+ }
+}