File policyd-weight-change_lockpath.patch of Package policyd-weight
Description: use proper location for lockpath to prevent security mess with permissions in unsecure directory
Origin: old upstream version
Author: Jan Wagner <waja@cyconet.org>
Index: policyd-weight-0.1.15dev3/usr/sbin/policyd-weight
===================================================================
--- policyd-weight-0.1.15dev3.orig/usr/sbin/policyd-weight
+++ policyd-weight-0.1.15dev3/usr/sbin/policyd-weight
@@ -404,7 +404,7 @@ my $BL_ERROR_SKIP = 2; # skip a RBL
my $BL_SKIP_RELEASE = 10; # skip a RBL for that many times
## cache stuff
-my $LOCKPATH = '/tmp/.policyd-weight/'; # must be a directory (add
+my $LOCKPATH = '/var/run/policyd-weight/'; # must be a directory (add
# trailing slash)
my $SPATH = $LOCKPATH.'/polw.sock'; # socket path for the cache