[tor/f18] Amend file/directory permissions to match upstream
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Mar 4 23:13:56 UTC 2013
commit 11a9e82f03c3d640f6793563038e3231d5d88202
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Mar 4 22:23:37 2013 +0000
Amend file/directory permissions to match upstream
tor.spec | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tor.spec b/tor.spec
index d9c48e3..5ca4751 100644
--- a/tor.spec
+++ b/tor.spec
@@ -196,10 +196,10 @@ test "$1" != "0" || /sbin/initctl -q stop tor || :
%{_mandir}/man1/tor-gencert.1*
%{_mandir}/man1/tor-resolve.1*
%dir %{_sysconfdir}/tor
-%attr(0640,root,%{username}) %config(noreplace) %{_sysconfdir}/tor/torrc
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/tor/torrc
%config(noreplace) %{_sysconfdir}/logrotate.d/tor
%attr(0700,%{username},%{username}) %dir %{homedir}
-%attr(0750,%{username},%{username}) %dir %{logdir}
+%attr(0700,%{username},%{username}) %dir %{logdir}
%attr(0750,%{username},%{username}) %dir %{_localstatedir}/run/tor
%exclude %{_mandir}/man1/torify.1*
@@ -229,6 +229,10 @@ test "$1" != "0" || /sbin/initctl -q stop tor || :
- add missing %%{?dist}
- cleanup systemd macros
- remove unnecessary Requires on logrotate directory
+- change permissions of the following files/directories:
+ /var/log/tor should be owned by toranon:toranon with 0700 permissions;
+ /var/lib/tor should be owned by toranon:toranon with 0700 permissions;
+ /etc/tor/torrc should be owned by root:root with 0644 permissions;
* Thu Feb 07 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.3.25-1801
- torify subpackage should depend on torsocks not tsocks (#908569)
More information about the scm-commits
mailing list