1 |
commit: a6f544e3a81cd674dc4bbda69ac49862a0796e7e |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Sat Jul 30 20:25:05 2016 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 10:37:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a6f544e3 |
7 |
|
8 |
Boinc updates from Russell Coker. |
9 |
|
10 |
policy/modules/contrib/boinc.fc | 4 ++++ |
11 |
policy/modules/contrib/boinc.te | 15 +++++++++++++-- |
12 |
2 files changed, 17 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/policy/modules/contrib/boinc.fc b/policy/modules/contrib/boinc.fc |
15 |
index 6d3ccad..e1e53a6 100644 |
16 |
--- a/policy/modules/contrib/boinc.fc |
17 |
+++ b/policy/modules/contrib/boinc.fc |
18 |
@@ -1,9 +1,13 @@ |
19 |
+/etc/boinc-client/global_prefs_override.xml -- gen_context(system_u:object_r:boinc_var_lib_t,s0) |
20 |
/etc/rc\.d/init\.d/boinc-client -- gen_context(system_u:object_r:boinc_initrc_exec_t,s0) |
21 |
|
22 |
+/usr/bin/boinc -- gen_context(system_u:object_r:boinc_exec_t,s0) |
23 |
/usr/bin/boinc_client -- gen_context(system_u:object_r:boinc_exec_t,s0) |
24 |
|
25 |
/var/lib/boinc(/.*)? gen_context(system_u:object_r:boinc_var_lib_t,s0) |
26 |
+/var/lib/boinc-client(/.*)? gen_context(system_u:object_r:boinc_var_lib_t,s0) |
27 |
/var/lib/boinc/projects(/.*)? gen_context(system_u:object_r:boinc_project_var_lib_t,s0) |
28 |
/var/lib/boinc/slots(/.*)? gen_context(system_u:object_r:boinc_project_var_lib_t,s0) |
29 |
|
30 |
/var/log/boinc\.log.* -- gen_context(system_u:object_r:boinc_log_t,s0) |
31 |
+/var/log/boincerr\.log.* -- gen_context(system_u:object_r:boinc_log_t,s0) |
32 |
|
33 |
diff --git a/policy/modules/contrib/boinc.te b/policy/modules/contrib/boinc.te |
34 |
index c24cb7b..58468ea 100644 |
35 |
--- a/policy/modules/contrib/boinc.te |
36 |
+++ b/policy/modules/contrib/boinc.te |
37 |
@@ -1,4 +1,4 @@ |
38 |
-policy_module(boinc, 1.3.0) |
39 |
+policy_module(boinc, 1.3.1) |
40 |
|
41 |
######################################## |
42 |
# |
43 |
@@ -54,6 +54,8 @@ allow boinc_t self:shm create_shm_perms; |
44 |
allow boinc_t self:fifo_file rw_fifo_file_perms; |
45 |
allow boinc_t self:sem create_sem_perms; |
46 |
|
47 |
+can_exec(boinc_t, boinc_exec_t) |
48 |
+ |
49 |
manage_dirs_pattern(boinc_t, boinc_tmp_t, boinc_tmp_t) |
50 |
manage_files_pattern(boinc_t, boinc_tmp_t, boinc_tmp_t) |
51 |
files_tmp_filetrans(boinc_t, boinc_tmp_t, { dir file }) |
52 |
@@ -71,12 +73,13 @@ manage_files_pattern(boinc_t, boinc_project_var_lib_t, boinc_project_var_lib_t) |
53 |
filetrans_pattern(boinc_t, boinc_var_lib_t, boinc_project_var_lib_t, dir, "slots") |
54 |
filetrans_pattern(boinc_t, boinc_var_lib_t, boinc_project_var_lib_t, dir, "projects") |
55 |
|
56 |
-append_files_pattern(boinc_t, boinc_log_t, boinc_log_t) |
57 |
+manage_files_pattern(boinc_t, boinc_log_t, boinc_log_t) |
58 |
create_files_pattern(boinc_t, boinc_log_t, boinc_log_t) |
59 |
setattr_files_pattern(boinc_t, boinc_log_t, boinc_log_t) |
60 |
logging_log_filetrans(boinc_t, boinc_log_t, file) |
61 |
|
62 |
can_exec(boinc_t, boinc_var_lib_t) |
63 |
+libs_exec_lib_files(boinc_t) |
64 |
|
65 |
domtrans_pattern(boinc_t, boinc_project_var_lib_t, boinc_project_t) |
66 |
|
67 |
@@ -188,8 +191,16 @@ corenet_sendrecv_boinc_client_packets(boinc_project_t) |
68 |
corenet_tcp_connect_boinc_port(boinc_project_t) |
69 |
corenet_tcp_sendrecv_boinc_port(boinc_project_t) |
70 |
|
71 |
+dev_getattr_input_dev(boinc_t) |
72 |
+dev_getattr_mouse_dev(boinc_t) |
73 |
+ |
74 |
files_dontaudit_search_home(boinc_project_t) |
75 |
|
76 |
+term_getattr_ptmx(boinc_t) |
77 |
+term_getattr_generic_ptys(boinc_t) |
78 |
+ |
79 |
+userdom_getattr_user_ttys(boinc_t) |
80 |
+ |
81 |
optional_policy(` |
82 |
java_exec(boinc_project_t) |
83 |
') |