forked from ports/contrib
tor: permission fixes bug #320
This commit is contained in:
parent
87dc6297af
commit
07eaaea5f4
@ -3,14 +3,14 @@ drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/tor
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor-gencert
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor-resolve
|
||||
-rwxr--r-- _tor/daemon usr/bin/torify
|
||||
-r-xr--r-- tor/tor usr/bin/tor
|
||||
-r-xr--r-- tor/tor usr/bin/tor-gencert
|
||||
-r-xr--r-- tor/tor usr/bin/tor-resolve
|
||||
-r-xr--r-- tor/tor usr/bin/torify
|
||||
drwxr-xr-x root/root usr/etc/
|
||||
drwxr-xr-x _tor/daemon usr/etc/tor/
|
||||
-rw------- _tor/daemon usr/etc/tor/tor-tsocks.conf
|
||||
-rw------- _tor/daemon usr/etc/tor/torrc
|
||||
drwxr-xr-x root/tor usr/etc/tor/
|
||||
-rw-rw---- root/tor usr/etc/tor/tor-tsocks.conf
|
||||
-rw-rw---- root/tor usr/etc/tor/torrc
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/tor-gencert.1.gz
|
||||
@ -22,8 +22,8 @@ drwxr-xr-x root/root usr/share/tor/
|
||||
-rw-r--r-- root/root usr/share/tor/geoip
|
||||
drwxr-xr-x root/root usr/var/
|
||||
drwxr-xr-x root/root usr/var/lib/
|
||||
drwxr-xr-x _tor/daemon usr/var/lib/tor/
|
||||
drwxr-xr-x root/tor usr/var/lib/tor/
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwxr-xr-x _tor/daemon var/log/tor/
|
||||
-rw-r----- _tor/daemon var/log/tor/notices.log (EMPTY)
|
||||
drwxr-xr-x root/tor var/log/tor/
|
||||
-rw-rw---- root/tor var/log/tor/notices.log (EMPTY)
|
||||
|
16
tor/Pkgfile
16
tor/Pkgfile
@ -6,7 +6,7 @@
|
||||
|
||||
name=tor
|
||||
version=0.2.0.28-rc
|
||||
release=1
|
||||
release=2
|
||||
source=(http://tor.eff.org/dist/tor-$version.tar.gz \
|
||||
tor.rc)
|
||||
|
||||
@ -29,18 +29,18 @@ build() {
|
||||
touch $PKG/var/log/tor/notices.log
|
||||
chown -R root:root $PKG
|
||||
|
||||
chown _tor:daemon \
|
||||
chown root:tor \
|
||||
$PKG/var/log/tor \
|
||||
$PKG/usr/etc/tor \
|
||||
$PKG/usr/var/lib/tor
|
||||
|
||||
find $PKG/usr/bin -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/usr/etc -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/var/log/tor -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/usr/bin -type f -exec chmod 0744 {} \;
|
||||
find $PKG/usr/etc/tor -type f -exec chmod 0600 {} \;
|
||||
find $PKG/usr/bin -type f -exec chown tor:tor {} \;
|
||||
find $PKG/usr/etc -type f -exec chown root:tor {} \;
|
||||
find $PKG/var/log/tor -type f -exec chown root:tor {} \;
|
||||
find $PKG/usr/bin -type f -exec chmod 0544 {} \;
|
||||
find $PKG/usr/etc/tor -type f -exec chmod 0660 {} \;
|
||||
|
||||
chmod 0640 $PKG/var/log/tor/notices.log
|
||||
chmod 0660 $PKG/var/log/tor/notices.log
|
||||
install -m 0755 $SRC/tor.rc $PKG/etc/rc.d/tor
|
||||
mv $PKG/usr/etc/tor/torrc.sample $PKG/usr/etc/tor/torrc
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
# Created by Danny Rawlins, <romster at shortcircuit dot net dot au>
|
||||
|
||||
GROUP=daemon
|
||||
USER=_tor
|
||||
GROUP=tor
|
||||
USER=tor
|
||||
USER_COMMENT="Tor Daemon"
|
||||
USER_HOME=/var/empty
|
||||
USER_SHELL=/bin/sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user