Skip to content

Commit

Permalink
Improve systemd protections
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibec committed Sep 21, 2018
1 parent d0bed2f commit f9abf64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Password and other usefull information will be sent to you after installation.

* to be confirmed
* [x] ARM support
* [x] Improve systemd protection

* to be added:
* [ ] Improve log file and add logrotate
* [ ] Improve systemd protection (see: https://github.com/YunoHost-Apps/kresus_ynh/issues/20)

## Links

Expand Down
7 changes: 7 additions & 0 deletions conf/systemd.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Type=forking
ExecStart=/usr/sbin/murmurd -ini __FINALPATH__/mumble-server.ini
PIDFile=/var/run/mumble-server/__APP__.pid
ExecReload=/bin/kill -s HUP $MAINPID
PrivateDevices=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectControlGroups=yes
ProtectKernelModules=yes
ReadWritePaths=__FINALPATH__ /var/log/mumble-server /var/run/mumble-server

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"requirements": {
"yunohost": ">= 3.1.0"
},
"version": "1.2.8~ynh4",
"version": "1.2.8~ynh5",
"multi_instance": true,
"services": [
],
Expand Down

0 comments on commit f9abf64

Please sign in to comment.