Skip to contentSkip to conversation

system-config-service of iptables needs this patch to work in targeted policy

PATCH Daniel J Walsh 2 participants 4 messages Mar 8, 2007 – Mar 27, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Basically iptables needs to be able to output to the terminal and talk to unconfined_pipes from the tool.

policy/modules/system/iptables.te +7 -2
@@ -77,9 +77,10 @@
 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)
 	files_dontaudit_read_root_files(iptables_t)
+ 	unconfined_rw_pipes(iptables_t)
 ')
 
 optional_policy(`
@@ -111,3 +112,7 @@
 optional_policy(`
 	udev_read_db(iptables_t)
 ')
+
+optional_policy(`
+	fail2ban_append_log(iptables_t)
+')
#1 lore raw
Quoted 22 lines · Daniel J Walsh

Basically iptables needs to be able to output to the terminal and talk
to unconfined_pipes from the tool.

differences
between files
attachment (nsaserefpolicy_policy_modules_system_iptables.patch)

--- nsaserefpolicy/policy/modules/system/iptables.te 2007-02-19
11:32:53.000000000 -0500
+++ serefpolicy-2.5.8/policy/modules/system/iptables.te 2007-03-08 08:42:37.000000000 -0500

policy/modules/system/iptables.te +0 -0
@@ -77,9 +77,10 @@
 userdom_use_all_users_fds(iptables_t)
 

policy/modules/system/iptables.te line 86

Quoted 10 lines
policy/modules/system/iptables.te +3 -2
 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)
        files_dontaudit_read_root_files(iptables_t)
+       unconfined_rw_pipes(iptables_t)
 ')
 
 optional_policy(`

Merged this part.

policy/modules/system/iptables.te line 118

Quoted 9 lines
policy/modules/system/iptables.te +4 -0
@@ -111,3 +112,7 @@
 optional_policy(`
        udev_read_db(iptables_t)
 ')
+
+optional_policy(`
+       fail2ban_append_log(iptables_t)
+')

But not this one since it doesn't seem relevant.

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.
#2 lore raw
Quoted 38 lines · Christopher J. PeBenito
Quoted 22 lines · Daniel J Walsh

Basically iptables needs to be able to output to the terminal and talk to unconfined_pipes from the tool.

differences
between files
attachment (nsaserefpolicy_policy_modules_system_iptables.patch)

--- nsaserefpolicy/policy/modules/system/iptables.te 2007-02-19
11:32:53.000000000 -0500
+++ serefpolicy-2.5.8/policy/modules/system/iptables.te 2007-03-08 08:42:37.000000000 -0500

policy/modules/system/iptables.te +0 -0
@@ -77,9 +77,10 @@
 userdom_use_all_users_fds(iptables_t)
 

policy/modules/system/iptables.te line 86

Quoted 10 lines
policy/modules/system/iptables.te +3 -2
 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)
        files_dontaudit_read_root_files(iptables_t)
+       unconfined_rw_pipes(iptables_t)
 ')
 
 optional_policy(`

Merged this part.

Quoted 14 lines

policy/modules/system/iptables.te line 118

Quoted 10 lines
policy/modules/system/iptables.te +4 -0
@@ -111,3 +112,7 @@
 optional_policy(`
        udev_read_db(iptables_t)
 ')
+
+optional_policy(`
+       fail2ban_append_log(iptables_t)
+')

But not this one since it doesn't seem relevant.

fail2ban is redirecting output from iptables to it's log files. Would you prefer dontaudit?

--
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.

#3 lore raw
Quoted 18 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh

Basically iptables needs to be able to output to the terminal and talk
to unconfined_pipes from the tool.

Quoted 10 lines

policy/modules/system/iptables.te line 118

Quoted 6 lines
policy/modules/system/iptables.te +4 -0
+
+optional_policy(`
+       fail2ban_append_log(iptables_t)
+')

But not this one since it doesn't seem relevant.

Quoted 2 lines

fail2ban is redirecting output from iptables to it's log files. Would you prefer dontaudit?

I just didn't know what it was about since you didn't mention it in the description.

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.