mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
eb1d122aec
* Basic build targets for debian packages * Add comments to config files * Harden beacon-chain systemd service * Add install scripts to set users and folders up * Rename bazel target, fix service files * Extra service hardening, cleanup install scripts * Fix linting issues * //shared:version_file run local only * gazelle Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
37 lines
796 B
Desktop File
37 lines
796 B
Desktop File
[Unit]
|
|
Description=Prysm Eth2 Beacon Chain
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User=prysm-beacon
|
|
Group=prysm-beacon
|
|
Type=simple
|
|
ExecStart=/usr/bin/beacon-chain --config-file /etc/prysm/beacon-chain.yaml --accept-terms-of-use
|
|
|
|
NoNewPrivileges=yes
|
|
CapabilityBoundingSet=
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
|
|
PrivateDevices=yes
|
|
PrivateUsers=yes
|
|
PrivateTmp=yes
|
|
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/lib/prysm/beacon-chain
|
|
ProtectClock=yes
|
|
ProtectHome=true
|
|
ProtectKernelLogs=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectHostname=yes
|
|
ProtectControlGroups=yes
|
|
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
RestrictSUIDSGID=yes
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |