[arch-commits] Commit in polipo/trunk (PKGBUILD polipo.install)

Daniel Micay thestinger at nymeria.archlinux.org
Fri Apr 11 03:26:42 UTC 2014


    Date: Friday, April 11, 2014 @ 05:26:42
  Author: thestinger
Revision: 109172

polipo: use secure permissions on the cache dir

This contains sensitive information (directories corresponding to visited
domains) so it should not be world-readable.

Modified:
  polipo/trunk/PKGBUILD
  polipo/trunk/polipo.install

----------------+
 PKGBUILD       |    3 +++
 polipo.install |    1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-04-11 03:10:46 UTC (rev 109171)
+++ PKGBUILD	2014-04-11 03:26:42 UTC (rev 109172)
@@ -1,6 +1,7 @@
 # $Id$
 # Maintainer: Thorsten Töpper <atsutane-tu at freethoughts.de>
 # Contributor: Jelle van der Waa <jelle vdwaa nl>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
 # Contributor: Thomas Holmquist <thomas at vorget.com>
 # Contributor: Jan Boehringer <ja(a)bm-boehringer.de>
 # Contributor: Alex Griffin <griffin.aj(a)gmail.com>
@@ -43,6 +44,8 @@
 
   # install systemd service
   install -Dm 644 "$srcdir/polipo.service" "$pkgdir/usr/lib/systemd/system/polipo.service"
+
+  install -dm 700 "$pkgdir/var/cache/polipo"
 }
 
 # vim:set ts=2 sw=2 et:

Modified: polipo.install
===================================================================
--- polipo.install	2014-04-11 03:10:46 UTC (rev 109171)
+++ polipo.install	2014-04-11 03:26:42 UTC (rev 109172)
@@ -6,7 +6,6 @@
   for file in ${filelist[@]}; do
     install-info $infodir/$file $infodir/dir 2> /dev/null
   done
-  install -d /var/cache/polipo 2> /dev/null
   chown -R nobody:nobody /var/cache/polipo 2> /dev/null
 }
 




More information about the arch-commits mailing list