* apache tunable expression
@ 2005-09-29 18:13 Christopher J. PeBenito
2005-09-29 18:28 ` Stephen Smalley
2005-09-29 19:15 ` Daniel J Walsh
0 siblings, 2 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2005-09-29 18:13 UTC (permalink / raw)
To: SELinux Mail List
In the apache policy, there is this conditional expression:
if (httpd_enable_cgi && httpd_unified && httpd_builtin_scripting
ifdef(`targeted_policy', ` && ! httpd_disable_trans')) {
Why is the httpd_disable_trans boolean checked? If the transition to
httpd_t is disabled, why does it matter if these rules are enabled or
not?
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: apache tunable expression
2005-09-29 18:13 apache tunable expression Christopher J. PeBenito
@ 2005-09-29 18:28 ` Stephen Smalley
2005-09-29 19:15 ` Daniel J Walsh
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2005-09-29 18:28 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: SELinux Mail List
On Thu, 2005-09-29 at 14:13 -0400, Christopher J. PeBenito wrote:
> In the apache policy, there is this conditional expression:
>
> if (httpd_enable_cgi && httpd_unified && httpd_builtin_scripting
> ifdef(`targeted_policy', ` && ! httpd_disable_trans')) {
>
> Why is the httpd_disable_trans boolean checked? If the transition to
> httpd_t is disabled, why does it matter if these rules are enabled or
> not?
Offhand guess: because this block also contained transitions from
sysadm_t to the httpd script domains for direct execution of scripts for
debugging/development purposes with the same permission set as they
would have in real use, and those transitions also need to be disabled
if the boolean is set. Looks like that is now wrapped by its own ifdef
anyway, so this may be historical and obsolete. There was a discussion
of this issue at one point on fedora-selinux-list iirc, in which it was
concluded that people want such scripts to be able to access the pty/tty
for diagnostic output when running them directly for
debugging/development purposes and thus they should default to not
transitioning in that case at least under targeted policy. They still
have the option of using runcon to explicitly run the script in the same
environment if desired (again, at least under targeted policy, where
they are able to use runcon without restriction).
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: apache tunable expression
2005-09-29 18:13 apache tunable expression Christopher J. PeBenito
2005-09-29 18:28 ` Stephen Smalley
@ 2005-09-29 19:15 ` Daniel J Walsh
1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2005-09-29 19:15 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: SELinux Mail List
Christopher J. PeBenito wrote:
>In the apache policy, there is this conditional expression:
>
>if (httpd_enable_cgi && httpd_unified && httpd_builtin_scripting
> ifdef(`targeted_policy', ` && ! httpd_disable_trans')) {
>
>Why is the httpd_disable_trans boolean checked? If the transition to
>httpd_t is disabled, why does it matter if these rules are enabled or
>not?
>
>
>
First one used to be needed to prevent transition from sysadm_t but the
new ifdef targeted removes the need. It looks like the second one was
never needed.
Dan
--
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-29 19:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 18:13 apache tunable expression Christopher J. PeBenito
2005-09-29 18:28 ` Stephen Smalley
2005-09-29 19:15 ` Daniel J Walsh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.