1 |
blueness 11/02/05 20:41:06 |
2 |
|
3 |
Added: add-apps-links.patch |
4 |
Log: |
5 |
Bulk addition of new selinux policies. |
6 |
|
7 |
(Portage version: 2.1.9.25/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sec-policy/selinux-links/files/add-apps-links.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-links/files/add-apps-links.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sec-policy/selinux-links/files/add-apps-links.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: add-apps-links.patch |
16 |
=================================================================== |
17 |
--- apps/links.te 1970-01-01 01:00:00.000000000 +0100 |
18 |
+++ apps/links.te 2011-01-22 15:01:55.272000135 +0100 |
19 |
@@ -0,0 +1,58 @@ |
20 |
+policy_module(links, 1.0.0) |
21 |
+ |
22 |
+############################ |
23 |
+# |
24 |
+# Declarations |
25 |
+# |
26 |
+ |
27 |
+type links_t; |
28 |
+type links_exec_t; |
29 |
+application_domain(links_t, links_exec_t) |
30 |
+ |
31 |
+type links_home_t; |
32 |
+typealias links_home_t alias { user_links_home_t staff_links_home_t sysadm_links_home_t }; |
33 |
+userdom_user_home_content(links_home_t) |
34 |
+ |
35 |
+type links_tmpfs_t; |
36 |
+typealias links_tmpfs_t alias { user_links_tmpfs_t staff_links_tmpfs_t sysadm_links_tmpfs_t }; |
37 |
+files_tmpfs_file(links_tmpfs_t) |
38 |
+ubac_constrained(links_tmpfs_t) |
39 |
+ |
40 |
+############################ |
41 |
+# |
42 |
+# Policy |
43 |
+# |
44 |
+ |
45 |
+allow links_t self:process signal_perms; |
46 |
+allow links_t self:unix_stream_socket create_stream_socket_perms; |
47 |
+ |
48 |
+manage_dirs_pattern(links_t, links_home_t, links_home_t) |
49 |
+manage_files_pattern(links_t, links_home_t, links_home_t) |
50 |
+manage_lnk_files_pattern(links_t, links_home_t, links_home_t) |
51 |
+manage_sock_files_pattern(links_t, links_home_t, links_home_t) |
52 |
+manage_fifo_files_pattern(links_t, links_home_t, links_home_t) |
53 |
+userdom_user_home_dir_filetrans(links_t, links_home_t, dir) |
54 |
+ |
55 |
+manage_fifo_files_pattern(links_t, links_t, links_t) |
56 |
+ |
57 |
+manage_files_pattern(links_t, links_tmpfs_t, links_tmpfs_t) |
58 |
+manage_lnk_files_pattern(links_t, links_tmpfs_t, links_tmpfs_t) |
59 |
+manage_fifo_files_pattern(links_t, links_tmpfs_t, links_tmpfs_t) |
60 |
+manage_sock_files_pattern(links_t, links_tmpfs_t, links_tmpfs_t) |
61 |
+fs_tmpfs_filetrans(links_t, links_tmpfs_t, { file lnk_file sock_file fifo_file }) |
62 |
+ |
63 |
+xserver_user_x_domain_template(links, links_t, links_tmpfs_t) |
64 |
+ |
65 |
+domain_use_interactive_fds(links_t) |
66 |
+ |
67 |
+userdom_manage_user_home_content_dirs(links_t) |
68 |
+userdom_manage_user_home_content_files(links_t) |
69 |
+ |
70 |
+auth_use_nsswitch(links_t) |
71 |
+ |
72 |
+userdom_use_user_terminals(links_t) |
73 |
+ |
74 |
+corenet_tcp_connect_http_port(links_t) |
75 |
+ |
76 |
+miscfiles_read_localization(links_t) |
77 |
+ |
78 |
--- apps/links.fc 1970-01-01 01:00:00.000000000 +0100 |
79 |
+++ apps/links.fc 2011-01-16 10:50:48.058999501 +0100 |
80 |
@@ -0,0 +1,2 @@ |
81 |
+/usr/bin/links -- gen_context(system_u:object_r:links_exec_t,s0) |
82 |
+HOME_DIR/\.links(/.*)? gen_context(system_u:object_r:links_home_t,s0) |