From 8aed476722eb45b4911fb137d1940f90b4819531 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 27 Jun 2017 08:02:24 +0200 Subject: [PATCH] use the sticky bit on %{_sharedstatedir}/softhsm/tokens That allows users in the group ods to save their keys in the shared directory, without being them writable by other users in the group. --- softhsm.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/softhsm.spec b/softhsm.spec index 9aad0f5..19a0496 100644 --- a/softhsm.spec +++ b/softhsm.spec @@ -3,7 +3,7 @@ Summary: Software version of a PKCS#11 Hardware Security Module Name: softhsm Version: 2.2.0 -Release: %{?prever:0.}1%{?prever:.%{prever}}%{?dist} +Release: %{?prever:0.}2%{?prever:.%{prever}}%{?dist} License: BSD Url: http://www.opendnssec.org/ Source: http://dist.opendnssec.org/source/%{?prever:testing/}%{name}-%{version}.tar.gz @@ -99,8 +99,8 @@ ln -s ../pkcs11/libsofthsm2.so %{buildroot}/%{_libdir}/softhsm/libsofthsm.so %{_libdir}/libsofthsm2.so %{_libdir}/softhsm/libsofthsm.so %attr(0664,root,root) %{_datadir}/p11-kit/modules/softhsm2.module -%attr(0770,ods,ods) %dir %{_sharedstatedir}/softhsm -%attr(0770,ods,ods) %dir %{_sharedstatedir}/softhsm/tokens +%attr(0750,ods,ods) %dir %{_sharedstatedir}/softhsm +%attr(1770,ods,ods) %dir %{_sharedstatedir}/softhsm/tokens %doc LICENSE README.md NEWS %{_mandir}/*/*