1 |
matsuu 09/07/28 23:48:36 |
2 |
|
3 |
Added: tomoyo-tools-2.2.0_p20090727-gentoo.patch |
4 |
Log: |
5 |
Initial import, bug #278513. |
6 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/tomoyo-tools/files/tomoyo-tools-2.2.0_p20090727-gentoo.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/files/tomoyo-tools-2.2.0_p20090727-gentoo.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/tomoyo-tools/files/tomoyo-tools-2.2.0_p20090727-gentoo.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tomoyo-tools-2.2.0_p20090727-gentoo.patch |
15 |
=================================================================== |
16 |
diff -Naur tomoyo-tools.orig/tomoyo_init_policy.c tomoyo-tools/tomoyo_init_policy.c |
17 |
--- tomoyo-tools.orig/tomoyo_init_policy.c 2009-07-27 15:00:00.000000000 +0900 |
18 |
+++ tomoyo-tools/tomoyo_init_policy.c 2009-07-29 01:56:32.000000000 +0900 |
19 |
@@ -728,6 +728,15 @@ |
20 |
echo("file_pattern " |
21 |
"/tmp/crontab.\\?\\?\\?\\?\\?\\?/crontab"); |
22 |
} |
23 |
+ const char *exe = which("crontab"); |
24 |
+ if (!exe) |
25 |
+ return; |
26 |
+ if (fgrep("crontab.XXXXXXXXXX", exe)) |
27 |
+ echo("file_pattern /tmp/crontab.XXXX\\?\\?\\?\\?\\?\\?"); |
28 |
+ if (fgrep("crontab.XXXXXX", exe)) |
29 |
+ echo("file_pattern /tmp/crontab.\\?\\?\\?\\?\\?\\?"); |
30 |
+ if (fgrep("fcr-XXXXXX", exe)) |
31 |
+ echo("file_pattern /tmp/fcr-\\?\\?\\?\\?\\?\\?"); |
32 |
} |
33 |
|
34 |
static void make_globally_readable_files(void) |
35 |
@@ -737,6 +746,8 @@ |
36 |
"/etc/ld.so.cache", "/proc/meminfo", |
37 |
"/proc/sys/kernel/version", "/etc/localtime", |
38 |
"/usr/lib/gconv/gconv-modules.cache", |
39 |
+ "/usr/lib32/gconv/gconv-modules.cache", |
40 |
+ "/usr/lib64/gconv/gconv-modules.cache", |
41 |
"/usr/share/locale/locale.alias" |
42 |
}; |
43 |
int i; |
44 |
@@ -813,6 +824,7 @@ |
45 |
"/sbin/syslogd", |
46 |
"/sbin/udevd", |
47 |
"/usr/X11R6/bin/xfs", |
48 |
+ "/usr/bin/dbus-daemon", |
49 |
"/usr/bin/dbus-daemon-1", |
50 |
"/usr/bin/jserver", |
51 |
"/usr/bin/mDNSResponder", |
52 |
@@ -906,6 +918,11 @@ |
53 |
echo("file_pattern /var/spool/squid/\\*/\\*/"); |
54 |
echo("file_pattern /var/spool/squid/\\*/\\*/\\*"); |
55 |
} |
56 |
+ if (!lstat("/var/cache/squid", &buf) && S_ISDIR(buf.st_mode)) { |
57 |
+ echo("file_pattern /var/cache/squid/\\*/"); |
58 |
+ echo("file_pattern /var/cache/squid/\\*/\\*/"); |
59 |
+ echo("file_pattern /var/cache/squid/\\*/\\*/\\*"); |
60 |
+ } |
61 |
} |
62 |
|
63 |
static void make_patterns_for_spamd(void) |
64 |
@@ -1059,6 +1076,10 @@ |
65 |
} |
66 |
if (fgrep("/tmp/whatis.XXXXXX", exe)) |
67 |
echo("file_pattern /tmp/whatis.\\?\\?\\?\\?\\?\\?"); |
68 |
+ if (fgrep("/tmp/whatis.tmp.dir.$$", exe)) { |
69 |
+ echo("file_pattern /tmp/whatis.tmp.dir\\$/"); |
70 |
+ echo("file_pattern /tmp/whatis.tmp.dir\\$/w"); |
71 |
+ } |
72 |
} |
73 |
|
74 |
static void make_patterns_for_automount(void) |
75 |
@@ -1238,6 +1259,10 @@ |
76 |
echo("file_pattern /etc/gshadow.\\$"); |
77 |
echo("file_pattern /etc/passwd.\\$"); |
78 |
echo("file_pattern /etc/shadow.\\$"); |
79 |
+ echo("file_pattern /etc/group.edit"); |
80 |
+ echo("file_pattern /etc/gshadow.edit"); |
81 |
+ echo("file_pattern /etc/passwd.edit"); |
82 |
+ echo("file_pattern /etc/shadow.edit"); |
83 |
echo("file_pattern /var/cache/logwatch/logwatch.\\*/"); |
84 |
echo("file_pattern /var/cache/logwatch/logwatch.\\*/\\*"); |
85 |
echo("file_pattern /var/tmp/sqlite_\\*"); |