Skip to content

Commit

Permalink
Update parsec to version 0.8.0 / rev 9 via SR 941864
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/941864
by user Guillaume_G + dimstar_suse
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
  * harden_parsec.service.patch
  Modified:
  * parsec.service
  * Upstream submission: parallaxsecond/parsec#569
  • Loading branch information
Guillaume_G authored and bmwiedemann committed Dec 21, 2021
1 parent 657263d commit 5bde15d
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 1 deletion.
Binary file modified packages/p/parsec/.files
Binary file not shown.
12 changes: 12 additions & 0 deletions packages/p/parsec/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,16 @@
</comment>
<requestid>937794</requestid>
</revision>
<revision rev="9" vrev="4">
<srcmd5>12e3e30cc4c4a94baaa00120be654e2b</srcmd5>
<version>0.8.0</version>
<time>1640108451</time>
<user>dimstar_suse</user>
<comment>- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_parsec.service.patch
Modified:
* parsec.service
* Upstream submission: https://github.com/parallaxsecond/parsec/issues/569</comment>
<requestid>941864</requestid>
</revision>
</revisionlist>
2 changes: 1 addition & 1 deletion packages/p/parsec/.servicemark
Original file line number Diff line number Diff line change
@@ -1 +1 @@
40ca968427e30a211f24816b15d45cd5
ff060f745a52eed6e45b4628522b7985
22 changes: 22 additions & 0 deletions packages/p/parsec/harden_parsec.service.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Index: parsec-0.8.0/systemd-daemon/parsec.service
===================================================================
--- parsec-0.8.0.orig/systemd-daemon/parsec.service
+++ parsec-0.8.0/systemd-daemon/parsec.service
@@ -3,6 +3,17 @@ Description=Parsec Service
Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/install_parsec_linux.html

[Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
WorkingDirectory=/home/parsec/
ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml

9 changes: 9 additions & 0 deletions packages/p/parsec/parsec.changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Thu Dec 9 11:05:48 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix /run/parsec permission to 755. This is enough for all
users to access the service - boo#1193484 - CVE-2021-36781

-------------------------------------------------------------------
Fri Oct 15 07:01:37 UTC 2021 - Johannes Segitz <jsegitz@suse.com>

- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
* harden_parsec.service.patch
Modified:
* parsec.service
* Upstream submission: https://github.com/parallaxsecond/parsec/issues/569

-------------------------------------------------------------------
Mon Sep 27 10:18:08 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>

Expand Down
11 changes: 11 additions & 0 deletions packages/p/parsec/parsec.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ Description=Parsec Service
Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/install_parsec_linux.html

[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Type=notify
KillMode=process
Restart=on-failure
Expand Down
3 changes: 3 additions & 0 deletions packages/p/parsec/parsec.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Source4: config.toml
Source5: parsec.conf
Source6: system-user-parsec.conf
Source10: https://git.trustedfirmware.org/TS/trusted-services.git/snapshot/trusted-services-c1cf912.tar.gz
# PATCH-FIX-UPSTREAM - https://github.com/parallaxsecond/parsec/issues/569
Patch0: harden_parsec.service.patch
BuildRequires: cargo
BuildRequires: clang-devel
BuildRequires: cmake
Expand Down Expand Up @@ -75,6 +77,7 @@ sed -i -e 's#default = \["unix-peer-credentials-authenticator"\]##' Cargo.toml
# all-authenticators = ["direct-authenticator", "unix-peer-credentials-authenticator", "jwt-svid-authenticator"]
# But disable "trusted-service-provider" until we have a trusted-services package
echo 'default = ["tpm-provider", "pkcs11-provider", "mbed-crypto-provider", "cryptoauthlib-provider", "all-authenticators"]' >> Cargo.toml
%patch0 -p1

%build
export PROTOC=%{_bindir}/protoc
Expand Down

0 comments on commit 5bde15d

Please sign in to comment.