Skip to contentSkip to conversation

Minor updates on contrib

PATCH New Sven Vermeulen 3 participants 16 messages Mar 10, 2013 – Mar 12, 2013

lore
Share & tools
lore
#0 lore raw

cover Minor updates on contrib

Set of minor updates on the contrib modules

Sven Vermeulen (6):
mplayer streams HTTP resources
fcron and fcronsighup binaries are moved Add in contexts for fcron rm.systab and systab.tmp Asterisk needs to search through logs Denial in mail log on node bind
Fix typo in mcelog_admin (missing bracket)

 asterisk.te | 1 +
 cron.fc     | 5 +++++
 mcelog.if   | 2 +-
 mplayer.te  | 3 +++
 postfix.te  | 2 ++
 5 files changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 1/6 mplayer streams HTTP resources

Needed to allow mplayer to stream HTTP resources (like webradios).

---
 mplayer.te | 3 +++
 1 file changed, 3 insertions(+)
mplayer.te +3 -0
index 9aca704..802e494 100644
@@ -130,6 +130,7 @@ tunable_policy(`use_samba_home_dirs',`
 allow mplayer_t self:process { signal_perms getsched };
 allow mplayer_t self:fifo_file rw_fifo_file_perms;
 allow mplayer_t self:sem create_sem_perms;
+allow mplayer_t self:udp_socket create_socket_perms;
 
 allow mplayer_t mplayer_etc_t:dir list_dir_perms;
 allow mplayer_t mplayer_etc_t:file read_file_perms;
@@ -155,6 +156,8 @@ kernel_read_kernel_sysctls(mplayer_t)
 corecmd_exec_bin(mplayer_t)
 corecmd_exec_shell(mplayer_t)
 
+corenet_tcp_connect_http_port(mplayer_t)
+
 dev_read_rand(mplayer_t)
 dev_read_realtime_clock(mplayer_t)
 dev_read_sound_mixer(mplayer_t)
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 1/6 mplayer streams HTTP resources

Quoted 1 line · Sven Vermeulen

Needed to allow mplayer to stream HTTP resources (like webradios).

Merged with additional networking rules for compatibility, Thanks

Quoted 26 lines
---
 mplayer.te | 3 +++
 1 file changed, 3 insertions(+)
mplayer.te +3 -0
index 9aca704..802e494 100644
@@ -130,6 +130,7 @@ tunable_policy(`use_samba_home_dirs',`
 allow mplayer_t self:process { signal_perms getsched };
 allow mplayer_t self:fifo_file rw_fifo_file_perms;
 allow mplayer_t self:sem create_sem_perms;
+allow mplayer_t self:udp_socket create_socket_perms;
 
 allow mplayer_t mplayer_etc_t:dir list_dir_perms;
 allow mplayer_t mplayer_etc_t:file read_file_perms;
@@ -155,6 +156,8 @@ kernel_read_kernel_sysctls(mplayer_t)
 corecmd_exec_bin(mplayer_t)
 corecmd_exec_shell(mplayer_t)
 
+corenet_tcp_connect_http_port(mplayer_t)
+
 dev_read_rand(mplayer_t)
 dev_read_realtime_clock(mplayer_t)
 dev_read_sound_mixer(mplayer_t)
#3 lore raw

PATCH 2/6 fcron and fcronsighup binaries are moved

In reply to Sven Vermeulen

In fcron 3.1.1, the fcron and fcronsighup binaries are moved into /usr/libexec.

---
 cron.fc | 3 +++
 1 file changed, 3 insertions(+)
cron.fc +3 -0
index 6e76215..d4fbcfd 100644
@@ -6,6 +6,9 @@
 /usr/bin/at			--	gen_context(system_u:object_r:crontab_exec_t,s0)
 /usr/bin/(f)?crontab		--	gen_context(system_u:object_r:crontab_exec_t,s0)
 
+/usr/libexec/fcron		--	gen_context(system_u:object_r:crond_exec_t,s0)
+/usr/libexec/fcronsighup	--	gen_context(system_u:object_r:crond_exec_t,s0)
+
 /usr/sbin/anacron		--	gen_context(system_u:object_r:anacron_exec_t,s0)
 /usr/sbin/atd			--	gen_context(system_u:object_r:crond_exec_t,s0)
 /usr/sbin/cron(d)?		--	gen_context(system_u:object_r:crond_exec_t,s0)
Signature · 1 line
1.8.1.5
#4 lore raw

PATCH 2/6 fcron and fcronsighup binaries are moved

Quoted 1 line · Sven Vermeulen

In fcron 3.1.1, the fcron and fcronsighup binaries are moved into /usr/libexec.

Merged with changes: fcronsighup is crontab_exec_t. Thanks

Quoted 20 lines
---
 cron.fc | 3 +++
 1 file changed, 3 insertions(+)
cron.fc +3 -0
index 6e76215..d4fbcfd 100644
@@ -6,6 +6,9 @@
 /usr/bin/at			--	gen_context(system_u:object_r:crontab_exec_t,s0)
 /usr/bin/(f)?crontab		--	gen_context(system_u:object_r:crontab_exec_t,s0)
 
+/usr/libexec/fcron		--	gen_context(system_u:object_r:crond_exec_t,s0)
+/usr/libexec/fcronsighup	--	gen_context(system_u:object_r:crond_exec_t,s0)
+
 /usr/sbin/anacron		--	gen_context(system_u:object_r:anacron_exec_t,s0)
 /usr/sbin/atd			--	gen_context(system_u:object_r:crond_exec_t,s0)
 /usr/sbin/cron(d)?		--	gen_context(system_u:object_r:crond_exec_t,s0)
#5 lore raw

PATCH 3/6 Add in contexts for fcron rm.systab and systab.tmp

In reply to Sven Vermeulen
---
 cron.fc | 2 ++
 1 file changed, 2 insertions(+)
cron.fc +2 -0
index d4fbcfd..cab22a1 100644
@@ -44,7 +44,9 @@
 /var/spool/fcron/.*			<<none>>
 /var/spool/fcron/systab\.orig	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 /var/spool/fcron/systab		--	gen_context(system_u:object_r:system_cron_spool_t,s0)
+/var/spool/fcron/systab\.tmp	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 /var/spool/fcron/new\.systab	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
+/var/spool/fcron/rm\.systab	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 
 ifdef(`distro_debian',`
 /var/spool/cron/atjobs	-d		gen_context(system_u:object_r:cron_spool_t,s0)
Signature · 1 line
1.8.1.5
#6 lore raw

PATCH 3/6 Add in contexts for fcron rm.systab and systab.tmp

Are the fcron source patches being maintained again?

Signature · 6 lines
My blog     http://etbe.coker.com.au
Sent from a Galaxy S3
Android phone with K-9 Mail. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20130311/414a6040/attachment.html 
#7 lore raw

PATCH 3/6 Add in contexts for fcron rm.systab and systab.tmp

Quoted 2 lines · Russell Coker

Are the fcron source patches being maintained again?

As long as I can get it to work by updating the policy (and as long as
Gentoo package maintainers continue with it) I continue with it ;-) -------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20130311/8044b9e0/attachment.html

#8 lore raw

PATCH 3/6 Add in contexts for fcron rm.systab and systab.tmp

Quoted 2 lines · Sven Vermeulen

As long as I can get it to work by updating the policy (and as long as Gentoo package maintainers continue with it) I continue with it ;-)

How can I get the Gentoo patches for the fcron package?

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#9 lore raw

PATCH 3/6 Add in contexts for fcron rm.systab and systab.tmp

In reply to Sven Vermeulen
Quoted 1 line · Sven Vermeulen

Merged, Thanks

Quoted 18 lines
---
 cron.fc | 2 ++
 1 file changed, 2 insertions(+)
cron.fc +2 -0
index d4fbcfd..cab22a1 100644
@@ -44,7 +44,9 @@
 /var/spool/fcron/.*			<<none>>
 /var/spool/fcron/systab\.orig	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 /var/spool/fcron/systab		--	gen_context(system_u:object_r:system_cron_spool_t,s0)
+/var/spool/fcron/systab\.tmp	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 /var/spool/fcron/new\.systab	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
+/var/spool/fcron/rm\.systab	--	gen_context(system_u:object_r:system_cron_spool_t,s0)
 
 ifdef(`distro_debian',`
 /var/spool/cron/atjobs	-d		gen_context(system_u:object_r:cron_spool_t,s0)
#10 lore raw

PATCH 4/6 Asterisk needs to search through logs

In reply to Sven Vermeulen

Allow asterisk to search through the log files, otherwise the following error is received:

asterisk: ERROR[23298]: cdr_csv.c:318 in csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Permission denied

---
 asterisk.te | 1 +
 1 file changed, 1 insertion(+)
asterisk.te +1 -0
index 5439f1c..c436f9f 100644
@@ -146,6 +146,7 @@ fs_search_auto_mountpoints(asterisk_t)
 
 auth_use_nsswitch(asterisk_t)
 
+logging_search_logs(asterisk_t)
 logging_send_syslog_msg(asterisk_t)
 
 miscfiles_read_localization(asterisk_t)
Signature · 1 line
1.8.1.5
#11 lore raw

PATCH 4/6 Asterisk needs to search through logs

Quoted 6 lines · Sven Vermeulen

Allow asterisk to search through the log files, otherwise the following error is received:

asterisk: ERROR[23298]: cdr_csv.c:318 in csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Permission denied

Merged, thanks

Quoted 17 lines
---
 asterisk.te | 1 +
 1 file changed, 1 insertion(+)
asterisk.te +1 -0
index 5439f1c..c436f9f 100644
@@ -146,6 +146,7 @@ fs_search_auto_mountpoints(asterisk_t)
 
 auth_use_nsswitch(asterisk_t)
 
+logging_search_logs(asterisk_t)
 logging_send_syslog_msg(asterisk_t)
 
 miscfiles_read_localization(asterisk_t)
#12 lore raw

PATCH 5/6 Denial in mail log on node bind

In reply to Sven Vermeulen

When mails are sent to an IPv6-enabled server, the following denial is otherwise shown in the mail logs:

postfix/smtp[7620]: warning: smtp_connect_addr: bind <local_ipv6>: Permission denied

---
 postfix.te | 2 ++
 1 file changed, 2 insertions(+)
postfix.te +2 -0
index 191a66f..dd59b2a 100644
@@ -702,6 +702,8 @@ allow postfix_smtp_t { postfix_prng_t postfix_spool_t }:file rw_file_perms;
 
 rw_files_pattern(postfix_smtp_t, postfix_spool_maildrop_t, postfix_spool_maildrop_t)
 
+corenet_tcp_bind_generic_node(postfix_smtp_t)
+
 optional_policy(`
 	cyrus_stream_connect(postfix_smtp_t)
 ')
Signature · 1 line
1.8.1.5
#13 lore raw

PATCH 5/6 Denial in mail log on node bind

Quoted 5 lines · Sven Vermeulen

When mails are sent to an IPv6-enabled server, the following denial is otherwise shown in the mail logs:

postfix/smtp[7620]: warning: smtp_connect_addr: bind <local_ipv6>: Permission denied

Merged. The original gentoo bugzilla here has additional details of this
event: https://bugs.gentoo.org/show_bug.cgi?id=453990

Thanks

Quoted 18 lines
---
 postfix.te | 2 ++
 1 file changed, 2 insertions(+)
postfix.te +2 -0
index 191a66f..dd59b2a 100644
@@ -702,6 +702,8 @@ allow postfix_smtp_t { postfix_prng_t postfix_spool_t }:file rw_file_perms;
 
 rw_files_pattern(postfix_smtp_t, postfix_spool_maildrop_t, postfix_spool_maildrop_t)
 
+corenet_tcp_bind_generic_node(postfix_smtp_t)
+
 optional_policy(`
 	cyrus_stream_connect(postfix_smtp_t)
 ')
#14 lore raw

PATCH 6/6 Fix typo in mcelog_admin (missing bracket)

In reply to Sven Vermeulen
---
 mcelog.if | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mcelog.if +1 -1
index 9dbe694..f89651e 100644
@@ -56,6 +56,6 @@ interface(`mcelog_admin',`
 	logging_search_logs($1)
 	admin_pattern($1, mcelog_log_t)
 
-	files_search_pids($1
+	files_search_pids($1)
 	admin_pattern($1, mcelog_var_run_t)
 ')
Signature · 1 line
1.8.1.5
#15 lore raw

PATCH 6/6 Fix typo in mcelog_admin (missing bracket)

Quoted 1 line · Sven Vermeulen

Merged, Thanks

Quoted 16 lines
---
 mcelog.if | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mcelog.if +1 -1
index 9dbe694..f89651e 100644
@@ -56,6 +56,6 @@ interface(`mcelog_admin',`
 	logging_search_logs($1)
 	admin_pattern($1, mcelog_log_t)
 
-	files_search_pids($1
+	files_search_pids($1)
 	admin_pattern($1, mcelog_var_run_t)
 ')