2014-10-29 09:11:07 +01:00
|
|
|
---
|
|
|
|
src/Makefile | 2 +-
|
|
|
|
src/daemon.h | 4 ++--
|
|
|
|
src/macros.pesign | 2 +-
|
|
|
|
src/pesign.sysvinit | 14 +++++++-------
|
|
|
|
src/tmpfiles.conf | 2 +-
|
|
|
|
5 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
|
2019-05-13 09:18:23 +02:00
|
|
|
Index: pesign-113/src/Makefile
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/Makefile
|
|
|
|
+++ pesign-113/src/Makefile
|
|
|
|
@@ -73,7 +73,7 @@ install_sysvinit: pesign.sysvinit
|
2014-04-16 09:27:13 +02:00
|
|
|
install :
|
|
|
|
$(INSTALL) -d -m 700 $(INSTALLROOT)/etc/pki/pesign/
|
2016-04-26 16:58:40 +02:00
|
|
|
$(INSTALL) -d -m 700 $(INSTALLROOT)/etc/pki/pesign-rh-test/
|
2014-04-16 09:27:13 +02:00
|
|
|
- $(INSTALL) -d -m 770 $(INSTALLROOT)/var/run/pesign/
|
|
|
|
+ $(INSTALL) -d -m 770 $(INSTALLROOT)/run/pesign/
|
2015-12-01 10:03:35 +01:00
|
|
|
$(INSTALL) -d -m 755 $(INSTALLROOT)$(bindir)
|
|
|
|
$(INSTALL) -m 755 authvar $(INSTALLROOT)$(bindir)
|
|
|
|
$(INSTALL) -m 755 pesign $(INSTALLROOT)$(bindir)
|
2019-05-13 09:18:23 +02:00
|
|
|
Index: pesign-113/src/daemon.h
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/daemon.h
|
|
|
|
+++ pesign-113/src/daemon.h
|
|
|
|
@@ -49,8 +49,8 @@ typedef enum {
|
2014-04-16 09:27:13 +02:00
|
|
|
} pesignd_cmd;
|
|
|
|
|
2014-10-29 09:11:07 +01:00
|
|
|
#define PESIGND_VERSION 0x2a9edaf0
|
2014-04-16 09:27:13 +02:00
|
|
|
-#define SOCKPATH "/var/run/pesign/socket"
|
|
|
|
-#define PIDFILE "/var/run/pesign.pid"
|
|
|
|
+#define SOCKPATH "/run/pesign/socket"
|
|
|
|
+#define PIDFILE "/run/pesign.pid"
|
|
|
|
|
2019-05-13 09:18:23 +02:00
|
|
|
static inline uint32_t UNUSED
|
|
|
|
pesignd_string_size(char *buffer)
|
|
|
|
Index: pesign-113/src/macros.pesign
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/macros.pesign
|
|
|
|
+++ pesign-113/src/macros.pesign
|
|
|
|
@@ -52,7 +52,7 @@
|
|
|
|
getfacl /var/run/pesign 1>&2 \
|
|
|
|
getfacl /var/run/pesign/socket 1>&2 \
|
|
|
|
exit 1 \
|
2014-04-16 09:27:13 +02:00
|
|
|
- elif [ -S /var/run/pesign/socket ]; then \
|
|
|
|
+ elif [ -S /run/pesign/socket ]; then \
|
2019-05-13 09:18:23 +02:00
|
|
|
%{_pesign_client} -t %{__pesign_client_token} \\\
|
|
|
|
-c %{__pesign_client_cert} \\\
|
2014-04-16 09:27:13 +02:00
|
|
|
%{-i} %{-o} %{-e} %{-s} %{-C} \
|
2019-05-13 09:18:23 +02:00
|
|
|
Index: pesign-113/src/tmpfiles.conf
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/tmpfiles.conf
|
|
|
|
+++ pesign-113/src/tmpfiles.conf
|
2015-12-01 10:03:35 +01:00
|
|
|
@@ -1 +1 @@
|
|
|
|
-D /var/run/pesign 0770 pesign pesign -
|
|
|
|
+D /run/pesign 0770 pesign pesign -
|
2019-05-13 09:18:23 +02:00
|
|
|
Index: pesign-113/src/pesign.sysvinit.in
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/pesign.sysvinit.in
|
|
|
|
+++ pesign-113/src/pesign.sysvinit.in
|
2014-04-16 09:27:13 +02:00
|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
#
|
|
|
|
# chkconfig: - 50 50
|
|
|
|
# processname: /usr/bin/pesign
|
|
|
|
-# pidfile: /var/run/pesign.pid
|
|
|
|
+# pidfile: /run/pesign.pid
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: pesign
|
|
|
|
# Should-Start: $remote_fs
|
2019-05-13 09:18:23 +02:00
|
|
|
Index: pesign-113/src/pesign.service.in
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/pesign.service.in
|
|
|
|
+++ pesign-113/src/pesign.service.in
|
|
|
|
@@ -4,6 +4,6 @@ Description=Pesign signing daemon
|
2015-12-01 10:03:35 +01:00
|
|
|
[Service]
|
|
|
|
PrivateTmp=true
|
|
|
|
Type=forking
|
|
|
|
-PIDFile=/var/run/pesign.pid
|
|
|
|
+PIDFile=/run/pesign.pid
|
|
|
|
ExecStart=/usr/bin/pesign --daemonize
|
2019-05-13 09:18:23 +02:00
|
|
|
ExecStartPost=@@LIBEXECDIR@@/pesign/pesign-authorize
|
|
|
|
Index: pesign-113/src/pesign-authorize
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2019-05-13 09:18:23 +02:00
|
|
|
--- pesign-113.orig/src/pesign-authorize
|
|
|
|
+++ pesign-113/src/pesign-authorize
|
|
|
|
@@ -47,7 +47,7 @@ update_subdir() {
|
|
|
|
done
|
|
|
|
}
|
2014-04-16 09:27:13 +02:00
|
|
|
|
2019-05-13 09:18:23 +02:00
|
|
|
-for x in /var/run/pesign/ /etc/pki/pesign*/ ; do
|
|
|
|
+for x in /run/pesign/ /etc/pki/pesign*/ ; do
|
|
|
|
if [ -d "${x}" ]; then
|
|
|
|
update_subdir "${x}"
|
|
|
|
else
|