IPTables needs to be able to talk to the terminal
service iptables status needs to be able to work.
Policy changes
policy/modules/system/iptables.te +5 -3
@@ -51,7 +51,7 @@ mls_file_read_up(iptables_t) -term_dontaudit_use_console(iptables_t) +term_use_console(iptables_t) domain_use_interactive_fds(iptables_t)
@@ -77,9 +77,11 @@ userdom_use_all_users_fds(iptables_t) ifdef(`targeted_policy', ` - term_dontaudit_use_unallocated_ttys(iptables_t) - term_dontaudit_use_generic_ptys(iptables_t) + term_use_unallocated_ttys(iptables_t) + term_use_generic_ptys(iptables_t) + term_use_all_user_ptys(iptables_t) files_dontaudit_read_root_files(iptables_t) + unconfined_rw_pipes(iptables_t) ') optional_policy(`
Quoted 1 line · Daniel J Walsh
service iptables status needs to be able to work.
Notes inline:
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 line 56
Quoted 10 lines
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 renamed from policy/modules/system/iptables.te 2007-02-19 11:32:53.000000000 -0500 +1
-1@@ -51,7 +51,7 @@ mls_file_read_up(iptables_t) -term_dontaudit_use_console(iptables_t) +term_use_console(iptables_t) domain_use_interactive_fds(iptables_t)
Since "service iptables status" is interactive, this doesn't seem to fit.
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 line 82
Quoted 9 lines
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 renamed from policy/modules/system/iptables.te 2007-02-19 11:32:53.000000000 -0500 +3
-2@@ -77,9 +77,11 @@ userdom_use_all_users_fds(iptables_t) ifdef(`targeted_policy', ` - term_dontaudit_use_unallocated_ttys(iptables_t) - term_dontaudit_use_generic_ptys(iptables_t) + term_use_unallocated_ttys(iptables_t) + term_use_generic_ptys(iptables_t) + term_use_all_user_ptys(iptables_t)
This last line doesn't fit since not all users can run iptables; this type of thing is what run interfaces are for.
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 line 84
Quoted 2 lines
policy/modules/system/iptables.te 2007-02-19 16:08:20.000000000 -0500 renamed from policy/modules/system/iptables.te 2007-02-19 11:32:53.000000000 -0500 +1
-0files_dontaudit_read_root_files(iptables_t) + unconfined_rw_pipes(iptables_t)
What is this for?
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.