mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
harden-module-loading.service
This commit is contained in:
parent
a768f1f1eb
commit
3e604618a8
13
lib/systemd/system/harden-module-loading.service
Normal file
13
lib/systemd/system/harden-module-loading.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Disable the loading of modules to the kernel after startup. This could be malicious.
|
||||
After=systemd-modules-load.service
|
||||
# This functionality is implemented with this and not directly in the sysctl config is
|
||||
# to allow systemd-modules-load.service to load the modules with no problem but
|
||||
# to disallow anyone else do the same after the system boots up.
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/security-misc/disable-kernel-module-loading
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
Loading…
Reference in New Issue
Block a user