Package: policyd-weight / 0.1.15.2-12

01_change_lockpath.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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> 
DEP: 3
--- a/policyd-weight
+++ b/policyd-weight
@@ -404,7 +404,7 @@
 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