File harden_ofono.service.patch of Package ofono
From b5a50fc2d81875500240ad941b8998bd1e247c30 Mon Sep 17 00:00:00 2001 From: Petr Vorel <pvorel@suse.cz> Date: Mon, 25 Aug 2025 15:39:34 +0200 Subject: [PATCH] systemd: Harden ofono service https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort Signed-off-by: Petr Vorel <pvorel@suse.cz> --- src/ofono.service.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ofono.service.in b/src/ofono.service.in index c24ac280..d397dae5 100644 --- a/src/ofono.service.in +++ b/src/ofono.service.in @@ -3,6 +3,19 @@ Description=Telephony service After=syslog.target [Service] +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectSystem=full +ProtectHome=true +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +RestrictRealtime=true +# end of automatic additions Type=dbus BusName=org.ofono ExecStart=@prefix@/sbin/ofonod -n -- 2.50.1