1 |
commit: ddd5723692850dcd882d3466d65b2be7a65908d0 |
2 |
Author: Dominick Grift <dominick.grift <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 26 06:37:45 2013 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 30 19:00:57 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ddd57236 |
7 |
|
8 |
slocate: catch /usr/bin/updatedb.mlocate, and /etc/cron.daily/mlocate on Debian |
9 |
|
10 |
Signed-off-by: Dominick Grift <dominick.grift <AT> gmail.com> |
11 |
|
12 |
--- |
13 |
policy/modules/contrib/slocate.fc | 4 +++- |
14 |
policy/modules/contrib/slocate.te | 2 +- |
15 |
2 files changed, 4 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/policy/modules/contrib/slocate.fc b/policy/modules/contrib/slocate.fc |
18 |
index 6eede98..19dbf4f 100644 |
19 |
--- a/policy/modules/contrib/slocate.fc |
20 |
+++ b/policy/modules/contrib/slocate.fc |
21 |
@@ -1,3 +1,5 @@ |
22 |
-/usr/bin/updatedb -- gen_context(system_u:object_r:locate_exec_t, s0) |
23 |
+/etc/cron\.daily/[sm]locate -- gen_context(system_u:object_r:locate_exec_t,s0) |
24 |
+ |
25 |
+/usr/bin/updatedb.* -- gen_context(system_u:object_r:locate_exec_t,s0) |
26 |
|
27 |
/var/lib/[sm]locate(/.*)? gen_context(system_u:object_r:locate_var_lib_t,s0) |
28 |
|
29 |
diff --git a/policy/modules/contrib/slocate.te b/policy/modules/contrib/slocate.te |
30 |
index 4df4417..b362a61 100644 |
31 |
--- a/policy/modules/contrib/slocate.te |
32 |
+++ b/policy/modules/contrib/slocate.te |
33 |
@@ -1,4 +1,4 @@ |
34 |
-policy_module(slocate, 1.12.0) |
35 |
+policy_module(slocate, 1.12.1) |
36 |
|
37 |
################################# |
38 |
# |