* [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc
@ 2010-04-18 18:31 Chris Richards
2010-04-18 18:50 ` Dominick Grift
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Chris Richards @ 2010-04-18 18:31 UTC (permalink / raw)
To: refpolicy
I cannot find any definition of httpd_keytab_t anywhere in refpolicy.
I don't know if the definition was removed somewhere and the fc was
simply not updated, or if there is supposed to be a definition that
somehow never got created, but I cannot compile refpolicy with things
as they are.
Signed-off-by: Chris Richards <gizmo@giz-works.com>
---
policy/modules/services/apache.fc | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/policy/modules/services/apache.fc b/policy/modules/services/apache.fc
index 9e39aa5..a6fcc0c 100644
--- a/policy/modules/services/apache.fc
+++ b/policy/modules/services/apache.fc
@@ -5,7 +5,6 @@ HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_u
/etc/drupal(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
/etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
/etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
-/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
/etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
/etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
/etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
--
1.6.4.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc
2010-04-18 18:31 [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc Chris Richards
@ 2010-04-18 18:50 ` Dominick Grift
2010-04-18 21:35 ` Chris Richards
2010-04-18 19:12 ` Dominick Grift
2010-04-18 20:01 ` Chris Richards
2 siblings, 1 reply; 5+ messages in thread
From: Dominick Grift @ 2010-04-18 18:50 UTC (permalink / raw)
To: refpolicy
On Sun, Apr 18, 2010 at 06:31:54PM +0000, Chris Richards wrote:
> I cannot find any definition of httpd_keytab_t anywhere in refpolicy.
> I don't know if the definition was removed somewhere and the fc was
> simply not updated, or if there is supposed to be a definition that
> somehow never got created, but I cannot compile refpolicy with things
> as they are.
>
kerberos_keytab_template(httpd, httpd_t)
Do you have the kerberos module included?
http://oss.tresys.com/projects/refpolicy/browser/policy/modules/services/apache.te (line 546)
http://oss.tresys.com/projects/refpolicy/browser/policy/modules/services/kerberos.if (line 230)
> Signed-off-by: Chris Richards <gizmo@giz-works.com>
> ---
> policy/modules/services/apache.fc | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/policy/modules/services/apache.fc b/policy/modules/services/apache.fc
> index 9e39aa5..a6fcc0c 100644
> --- a/policy/modules/services/apache.fc
> +++ b/policy/modules/services/apache.fc
> @@ -5,7 +5,6 @@ HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_u
> /etc/drupal(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
> /etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
> /etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
> -/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
> /etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
> /etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
> /etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
> --
> 1.6.4.4
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100418/51d8ce19/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc
2010-04-18 18:31 [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc Chris Richards
2010-04-18 18:50 ` Dominick Grift
@ 2010-04-18 19:12 ` Dominick Grift
2010-04-18 20:01 ` Chris Richards
2 siblings, 0 replies; 5+ messages in thread
From: Dominick Grift @ 2010-04-18 19:12 UTC (permalink / raw)
To: refpolicy
On Sun, Apr 18, 2010 at 06:31:54PM +0000, Chris Richards wrote:
> I cannot find any definition of httpd_keytab_t anywhere in refpolicy.
> I don't know if the definition was removed somewhere and the fc was
> simply not updated, or if there is supposed to be a definition that
> somehow never got created, but I cannot compile refpolicy with things
> as they are.
refpolicy has some "quirks". There are some unwritten rules and gotchas.
If your policy does not build due to "out of scope" issues you may want to move the module(s) in question to the base module in modules.conf.
i maintain my own customized policy: git clone git://217.19.27.98/refpolicy.git
If you look into the redhat directory in master, you will notice some customizations with regard to modules.conf amongst other things. These customizations may provides clues as to what may be needed to get it to build/install
>
> Signed-off-by: Chris Richards <gizmo@giz-works.com>
> ---
> policy/modules/services/apache.fc | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/policy/modules/services/apache.fc b/policy/modules/services/apache.fc
> index 9e39aa5..a6fcc0c 100644
> --- a/policy/modules/services/apache.fc
> +++ b/policy/modules/services/apache.fc
> @@ -5,7 +5,6 @@ HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_u
> /etc/drupal(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
> /etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
> /etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
> -/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
> /etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
> /etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
> /etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
> --
> 1.6.4.4
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100418/5d66f1da/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc
2010-04-18 18:31 [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc Chris Richards
2010-04-18 18:50 ` Dominick Grift
2010-04-18 19:12 ` Dominick Grift
@ 2010-04-18 20:01 ` Chris Richards
2 siblings, 0 replies; 5+ messages in thread
From: Chris Richards @ 2010-04-18 20:01 UTC (permalink / raw)
To: refpolicy
Disregard this patch, appears to be related to patch from Dan Walsh
(83caba3eb....), which only included file context changes, but was
apparently part of a patch series that has not completely been applied.
On 04/18/2010 01:31 PM, Chris Richards wrote:
> I cannot find any definition of httpd_keytab_t anywhere in refpolicy.
> I don't know if the definition was removed somewhere and the fc was
> simply not updated, or if there is supposed to be a definition that
> somehow never got created, but I cannot compile refpolicy with things
> as they are.
>
> Signed-off-by: Chris Richards<gizmo@giz-works.com>
> ---
> policy/modules/services/apache.fc | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/policy/modules/services/apache.fc b/policy/modules/services/apache.fc
> index 9e39aa5..a6fcc0c 100644
> --- a/policy/modules/services/apache.fc
> +++ b/policy/modules/services/apache.fc
> @@ -5,7 +5,6 @@ HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_u
> /etc/drupal(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
> /etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
> /etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
> -/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
> /etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
> /etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
> /etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc
2010-04-18 18:50 ` Dominick Grift
@ 2010-04-18 21:35 ` Chris Richards
0 siblings, 0 replies; 5+ messages in thread
From: Chris Richards @ 2010-04-18 21:35 UTC (permalink / raw)
To: refpolicy
On 04/18/2010 01:50 PM, Dominick Grift wrote:
> On Sun, Apr 18, 2010 at 06:31:54PM +0000, Chris Richards wrote:
>
>> I cannot find any definition of httpd_keytab_t anywhere in refpolicy.
>> I don't know if the definition was removed somewhere and the fc was
>> simply not updated, or if there is supposed to be a definition that
>> somehow never got created, but I cannot compile refpolicy with things
>> as they are.
>>
>>
>
> kerberos_keytab_template(httpd, httpd_t)
>
> Do you have the kerberos module included?
>
>
No, I do not. Gentoo policy does not include modules that are not
required to support the installed applications. E.g., if I don't have
Kerberos installed, then I won't have the Kerberos policy module
installed either.
Perhaps the apache.fc statement needs to be wrapped with an
optional_policy declaration?
> http://oss.tresys.com/projects/refpolicy/browser/policy/modules/services/apache.te (line 546)
> http://oss.tresys.com/projects/refpolicy/browser/policy/modules/services/kerberos.if (line 230)
>
>
>> Signed-off-by: Chris Richards<gizmo@giz-works.com>
>> ---
>> policy/modules/services/apache.fc | 1 -
>> 1 files changed, 0 insertions(+), 1 deletions(-)
>>
>> diff --git a/policy/modules/services/apache.fc b/policy/modules/services/apache.fc
>> index 9e39aa5..a6fcc0c 100644
>> --- a/policy/modules/services/apache.fc
>> +++ b/policy/modules/services/apache.fc
>> @@ -5,7 +5,6 @@ HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_u
>> /etc/drupal(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
>> /etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
>> /etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
>> -/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
>> /etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
>> /etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
>> /etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
>> --
>> 1.6.4.4
>>
>> _______________________________________________
>> refpolicy mailing list
>> refpolicy at oss.tresys.com
>> http://oss.tresys.com/mailman/listinfo/refpolicy
>>
>>
>>
>> _______________________________________________
>> refpolicy mailing list
>> refpolicy at oss.tresys.com
>> http://oss.tresys.com/mailman/listinfo/refpolicy
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20100418/8f86be24/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-18 21:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 18:31 [refpolicy] [PATCH 1/1] Remove httpd_keytab_t from apache.fc Chris Richards
2010-04-18 18:50 ` Dominick Grift
2010-04-18 21:35 ` Chris Richards
2010-04-18 19:12 ` Dominick Grift
2010-04-18 20:01 ` Chris Richards
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.