diff options
Diffstat (limited to 'recipes-security/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch')
-rw-r--r-- | recipes-security/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-security/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch b/recipes-security/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch new file mode 100644 index 0000000..dad6b15 --- /dev/null +++ b/recipes-security/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | From 00fb527e45da42550156197647e01de9a6b1ad52 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Mon, 3 Mar 2014 01:50:01 -0500 | ||
4 | Subject: [PATCH] fix real path for some files/dirs | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
9 | --- | ||
10 | samhainrc.linux | 15 +++++++-------- | ||
11 | 1 file changed, 7 insertions(+), 8 deletions(-) | ||
12 | |||
13 | diff --git a/samhainrc.linux b/samhainrc.linux | ||
14 | index e9727b4..7775d83 100644 | ||
15 | --- a/samhainrc.linux | ||
16 | +++ b/samhainrc.linux | ||
17 | @@ -93,7 +93,6 @@ dir = 99/etc | ||
18 | ## | ||
19 | file = /etc/mtab | ||
20 | file = /etc/fstab | ||
21 | -file = /etc/adjtime | ||
22 | file = /etc/motd | ||
23 | file = /etc/lvm/lvm.conf | ||
24 | |||
25 | @@ -153,11 +152,11 @@ dir = 99/var | ||
26 | |||
27 | [IgnoreAll] | ||
28 | dir = -1/var/cache | ||
29 | -dir = -1/var/lock | ||
30 | -dir = -1/var/mail | ||
31 | -dir = -1/var/run | ||
32 | +dir = -1/run/lock | ||
33 | +dir = -1/var/spool/mail | ||
34 | +dir = -1/run | ||
35 | dir = -1/var/spool | ||
36 | -dir = -1/var/tmp | ||
37 | +dir = -1/var/volatile/tmp | ||
38 | |||
39 | |||
40 | [Attributes] | ||
41 | @@ -167,7 +166,7 @@ dir = -1/var/tmp | ||
42 | file = /var/lib/rpm/__db.00? | ||
43 | |||
44 | file = /var/lib/logrotate.status | ||
45 | -file = /var/lib/random-seed | ||
46 | +file = /var/lib/urandom/random-seed | ||
47 | |||
48 | |||
49 | [GrowingLogFiles] | ||
50 | @@ -176,7 +175,7 @@ file = /var/lib/random-seed | ||
51 | ## are ignored. Logfile rotation will cause a report because of shrinking | ||
52 | ## size and different inode. | ||
53 | ## | ||
54 | -dir = 99/var/log | ||
55 | +dir = 99/var/volatile/log | ||
56 | |||
57 | [Attributes] | ||
58 | # | ||
59 | -- | ||
60 | 1.7.9.5 | ||
61 | |||