You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
2 years ago
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Jones <pjones@redhat.com>
|
||
|
Date: Mon, 16 May 2016 15:25:53 -0400
|
||
|
Subject: [PATCH] Actually setfacl /each/ directory of our key storage.
|
||
|
|
||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||
|
---
|
||
|
src/pesign-authorize-groups | 6 +++---
|
||
|
src/pesign-authorize-users | 6 +++---
|
||
|
2 files changed, 6 insertions(+), 6 deletions(-)
|
||
|
|
||
|
diff --git a/src/pesign-authorize-groups b/src/pesign-authorize-groups
|
||
|
index a4f895e..cf51fb6 100644
|
||
|
--- a/src/pesign-authorize-groups
|
||
|
+++ b/src/pesign-authorize-groups
|
||
|
@@ -18,10 +18,10 @@ if [ -r /etc/pesign/groups ]; then
|
||
|
setfacl -m g:${group}:rw /var/run/pesign/socket
|
||
|
fi
|
||
|
fi
|
||
|
- for x in /etc/pki/pesign* ; do
|
||
|
+ for x in /etc/pki/pesign*/ ; do
|
||
|
if [ -d ${x} ]; then
|
||
|
- setfacl -m g:${group}:rx /etc/pki/pesign
|
||
|
- for y in ${x}/{cert8,key3,secmod}.db ; do
|
||
|
+ setfacl -m g:${group}:rx ${x}
|
||
|
+ for y in ${x}{cert8,key3,secmod}.db ; do
|
||
|
setfacl -m g:${group}:rw ${y}
|
||
|
done
|
||
|
fi
|
||
|
diff --git a/src/pesign-authorize-users b/src/pesign-authorize-users
|
||
|
index 8b9a885..940138e 100644
|
||
|
--- a/src/pesign-authorize-users
|
||
|
+++ b/src/pesign-authorize-users
|
||
|
@@ -18,10 +18,10 @@ if [ -r /etc/pesign/users ]; then
|
||
|
setfacl -m g:${username}:rw /var/run/pesign/socket
|
||
|
fi
|
||
|
fi
|
||
|
- for x in /etc/pki/pesign* ; do
|
||
|
+ for x in /etc/pki/pesign*/ ; do
|
||
|
if [ -d ${x} ]; then
|
||
|
- setfacl -m g:${username}:rx /etc/pki/pesign
|
||
|
- for y in ${x}/{cert8,key3,secmod}.db ; do
|
||
|
+ setfacl -m g:${username}:rx ${x}
|
||
|
+ for y in ${x}{cert8,key3,secmod}.db ; do
|
||
|
setfacl -m g:${username}:rw ${y}
|
||
|
done
|
||
|
fi
|