File: 01_change_lockpath.patch

package info (click to toggle)
policyd-weight 0.1.15.2-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,824 kB
  • ctags: 275
  • sloc: perl: 2,832; sh: 201; makefile: 35
file content (15 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (3)
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