Commit 8d4f4c9 1 parent 52fc252 commit 8d4f4c9 Copy full SHA for 8d4f4c9
File tree 7 files changed +13
-0
lines changed
7 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
libretime_allow_restart : true
3
3
libretime_migrate : true
4
+ libretime_systemd_hardening : true
4
5
5
6
# libretime_config_template:
6
7
libretime_public_url : " http://localhost:{{ libretime_listen_port }}/"
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ provisioner:
33
33
libretime_playout_systemd_override : |
34
34
[Service]
35
35
Environment=LIBRETIME_LOG_LEVEL=debug
36
+ libretime_systemd_hardening : false
36
37
instance2 :
37
38
libretime_public_url : http://localhost:{{ libretime_listen_port }}/
38
39
libretime_listen_port : 9002
39
40
libretime_api_key : hackme
40
41
libretime_secret_key : hackme
42
+ libretime_systemd_hardening : false
41
43
42
44
verifier :
43
45
name : testinfra
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Description=LibreTime Media Analyzer Service
3
3
PartOf=libretime.target
4
4
5
5
[Service]
6
+ {% - if libretime_systemd_hardening %}
6
7
NoNewPrivileges=true
7
8
CapabilityBoundingSet=
8
9
PrivateDevices=true
@@ -16,6 +17,7 @@ ProtectKernelModules=true
16
17
ProtectKernelTunables=true
17
18
ProtectProc=invisible
18
19
ProtectSystem=full
20
+ {% - endif %}
19
21
20
22
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
21
23
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Requires=libretime-api.socket
4
4
PartOf=libretime.target
5
5
6
6
[Service]
7
+ {% - if libretime_systemd_hardening %}
7
8
NoNewPrivileges=true
8
9
CapabilityBoundingSet=
9
10
PrivateDevices=true
@@ -17,6 +18,7 @@ ProtectKernelModules=true
17
18
ProtectKernelTunables=true
18
19
ProtectProc=invisible
19
20
ProtectSystem=full
21
+ {% - endif %}
20
22
21
23
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
22
24
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Description=LibreTime Liquidsoap Service
3
3
PartOf=libretime.target
4
4
5
5
[Service]
6
+ {% - if libretime_systemd_hardening %}
6
7
NoNewPrivileges=true
7
8
CapabilityBoundingSet=
8
9
PrivateDevices=true
@@ -16,6 +17,7 @@ ProtectKernelModules=true
16
17
ProtectKernelTunables=true
17
18
ProtectProc=invisible
18
19
ProtectSystem=full
20
+ {% - endif %}
19
21
20
22
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
21
23
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Wants=libretime-liquidsoap.service
5
5
After=libretime-liquidsoap.service
6
6
7
7
[Service]
8
+ {% - if libretime_systemd_hardening %}
8
9
NoNewPrivileges=true
9
10
CapabilityBoundingSet=
10
11
PrivateDevices=true
@@ -18,6 +19,7 @@ ProtectKernelModules=true
18
19
ProtectKernelTunables=true
19
20
ProtectProc=invisible
20
21
ProtectSystem=full
22
+ {% - endif %}
21
23
22
24
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
23
25
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Description=LibreTime Worker Service
3
3
PartOf=libretime.target
4
4
5
5
[Service]
6
+ {% - if libretime_systemd_hardening %}
6
7
NoNewPrivileges=true
7
8
CapabilityBoundingSet=
8
9
PrivateDevices=true
@@ -16,6 +17,7 @@ ProtectKernelModules=true
16
17
ProtectKernelTunables=true
17
18
ProtectProc=invisible
18
19
ProtectSystem=full
20
+ {% - endif %}
19
21
20
22
Environment=PATH={{ libretime_venv_dir }}/bin:/usr/local/bin:/usr/bin:/bin
21
23
Environment=LIBRETIME_CONFIG_FILEPATH={{ libretime_config_filepath }}
You can’t perform that action at this time.
0 commit comments