mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2025-02-21 08:01:04 +01:00
Move systemd unit hardening from 'supybot-botchk' to 'security'
'supybot-botchk' is meant for beginners, they don't need/want to deal with this.
This commit is contained in:
parent
fa8d462e0a
commit
b8bb4b5ae9
@ -173,3 +173,14 @@ Again, if this is undesirable to you, you can do the following:
|
|||||||
Note that, when asking for help involving an error, you should enable verbose
|
Note that, when asking for help involving an error, you should enable verbose
|
||||||
errors when providing logs (ie. reset these last values to their default),
|
errors when providing logs (ie. reset these last values to their default),
|
||||||
so it is easier to help you diagnose your problems.
|
so it is easier to help you diagnose your problems.
|
||||||
|
|
||||||
|
Finally, if you use :ref:`the systemd unit <supybot-botchk>`, you can add
|
||||||
|
this to its ``[Service]]`` section:
|
||||||
|
|
||||||
|
SystemCallFilter=~@raw-io @clock @cpu-emulation @debug @keyring @module @mount @obsolete @privileged @raw-io
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=read-only
|
||||||
|
ReadWritePaths=/home/bot/botname
|
||||||
|
|
||||||
|
This might break some plugins, but most will work. You will get explicit
|
||||||
|
errors if this is an issue, and you can always revert back.
|
||||||
|
@ -33,11 +33,6 @@ following content replacing things were suitable::
|
|||||||
Restart=always
|
Restart=always
|
||||||
User=BOTUSERNAME
|
User=BOTUSERNAME
|
||||||
SyslogIdentifier=Supybot
|
SyslogIdentifier=Supybot
|
||||||
# Uncomment these lines for extra security at the cost of breaking some third-party plugins:
|
|
||||||
# SystemCallFilter=~@raw-io @clock @cpu-emulation @debug @keyring @module @mount @obsolete @privileged @raw-io
|
|
||||||
# ProtectSystem=strict
|
|
||||||
# ProtectHome=read-only
|
|
||||||
# ReadWritePaths=/home/bot/botname
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user