Skip to contentSkip to conversation

w3c.te module policy

DISCUSSION Daniel J Walsh 2 participants 2 messages Mar 11, 2006 – Mar 14, 2006 3 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Ville has been trying to build a modular policy package for w3c. He created te,fc,if files similar to the ones I have attached. The problem is that when he compiles them he ends up with avc messages suggesting he needs these additional rules:

allow httpd_t httpd_w3c_script_exec_t:file { execute execute_no_trans getattr ioctl read };

I have duplicated this on my machine.

From my reading of the generated policy these should already exist. Examining the tmp/w3c.tmp file it looks like they are there (except for the execute_no_trans). They are wrapped in a boolean though. Is there something wrong in policy modules handling of booleans?

policy_module(w3c,1.2.1)

apache_content_template(w3c)

sysnet_dns_name_resolve(httpd_w3c_script_t)

# allow httpd_w3c_script_t to connect to a relay
corenet_tcp_connect_gopher_port(httpd_w3c_script_t)
corenet_tcp_connect_ftp_port(httpd_w3c_script_t)
corenet_tcp_connect_http_port(httpd_w3c_script_t)
corenet_tcp_connect_http_cache_port(httpd_w3c_script_t)

tunable_policy(httpd_can_network_connect',
corenet_tcp_connect_all_ports(httpd_w3c_script_t)
')

/usr/share/w3c-markup-validator(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
/usr/share/w3c-markup-validator/check gen_context(system_u:object_r:httpd_w3c_script_exec_t,s0)

#4 lore raw
Quoted 8 lines · Daniel J Walsh

Ville has been trying to build a modular policy package for w3c. He created te,fc,if files similar to the ones I have attached. The problem is that when he compiles them he ends up with avc messages suggesting he needs these additional rules:

allow httpd_t httpd_w3c_script_exec_t:file { execute execute_no_trans getattr ioctl read };

Quoted 6 lines

I have duplicated this on my machine.

From my reading of the generated policy these should already exist.
Examining the tmp/w3c.tmp file it looks like they are there (except for the execute_no_trans). They are wrapped in a boolean though. Is there something wrong in policy modules handling of booleans?

The transition from httpd_t to httpd_*_script_t is inside httpd_enable_cgi; if that is not enabled, then it makes sense that the perms listed above would be denied.

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.