diff options
author | Michael Shuler <michael@pbandjelly.org> | 2014-10-06 15:30:16 -0500 |
---|---|---|
committer | Michael Shuler <michael@pbandjelly.org> | 2014-10-06 15:30:16 -0500 |
commit | 07a789e709a59be96ac8958ae8b5fa6688c62a11 (patch) | |
tree | 78315753ab78f29b57e9510a2e952e28d9a70916 /sbin | |
parent | 60256869acfffb92f1f54bb7eb4635ebfb2b5b4e (diff) | |
download | ca-certificates-07a789e709a59be96ac8958ae8b5fa6688c62a11.tar.gz |
Restore SELinux label after generating ca-certificates.crt file. #742957
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/update-ca-certificates | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates index 021a3c7..b8f16b4 100755 --- a/sbin/update-ca-certificates +++ b/sbin/update-ca-certificates @@ -146,6 +146,8 @@ fi chmod 0644 "$TEMPBUNDLE" mv -f "$TEMPBUNDLE" "$CERTBUNDLE" +# Restore proper SELinux label after moving the file +[ -x /sbin/restorecon ] && /sbin/restorecon "$CERTBUNDLE" echo "$ADDED_CNT added, $REMOVED_CNT removed; done." |