Skip to contentSkip to conversation

libsepol.expand_terule_helper: duplicate TE rule

DISCUSSION Shintaro Fujiwara 4 participants 9 messages Dec 1, 2007 – Dec 5, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

Signature · 16 lines
Shintaro Fujiwara
segatex project (SELinux policy tool)
http://sourceforge.net/projects/segatex/
Home page
http://intrajp.no-ip.com/
Blog
http://intrajp.no-ip.com/nucleus/
CMS
http://intrajp.no-ip.com/xoops/
Wiki
http://intrajp.no-ip.com/pukiwiki/

--
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.
#1 lore raw
Quoted 10 lines · Shintaro Fujiwara

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

Which distro policy are you using?

Signature · 7 lines
Chris PeBenito
<[email protected]>
Developer,
Hardened Gentoo Linux
 
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A  CB00 BC8E E42D E6AF 9243
#2 lore raw

Well, as a matter of fact, I installed apache from source. So, I installed apche into /usr/local/apache2.

I set /etc/selinux/config permissive and found that apache runs in initrc_t.
But, of course I want to make it run httpd_t.

So, I tried to edit your refpolicy downloading from repository, newest version.
I commented every

type ...
bool ...
atribute...

including .if of templates.

and set them require {}.

I succeeded make apache.pp all-right, but when I tried to install by semodule -i apache.pp,
expand_terule_helper says it has an error.

I found exim module in services directory but could not found anything like process system_mail_t
I could not found those in tmp/apache.mod either.

It's first time I see this error and don't know what it is.

I messed up policy apache or some kind of bug ?

I succeeded install postgresql and mysql by this method all-right.

Thanks for your quick response.

2007/12/2, Chris PeBenito <[email protected]>:

Quoted 24 lines · Shintaro Fujiwara
Quoted 10 lines

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

Which distro policy are you using?

--
Chris PeBenito
<[email protected]>
Developer,
Hardened Gentoo Linux

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243

Signature · 16 lines
Shintaro Fujiwara
segatex project (SELinux policy tool)
http://sourceforge.net/projects/segatex/
Home page
http://intrajp.no-ip.com/
Blog
http://intrajp.no-ip.com/nucleus/
CMS
http://intrajp.no-ip.com/xoops/
Wiki
http://intrajp.no-ip.com/pukiwiki/

--
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 9 lines · Shintaro Fujiwara

Well, as a matter of fact, I installed apache from source. So, I installed apche into /usr/local/apache2.

I set /etc/selinux/config permissive and found that apache runs in initrc_t.
But, of course I want to make it run httpd_t.

So, I tried to edit your refpolicy downloading from repository, newest version.

And the remainder of the policy is which fedora policy version?

Quoted 41 lines

I commented every

type ...
bool ...
atribute...

including .if of templates.

and set them require {}.

I succeeded make apache.pp all-right, but when I tried to install by semodule -i apache.pp,
expand_terule_helper says it has an error.

I found exim module in services directory but could not found anything like process system_mail_t
I could not found those in tmp/apache.mod either.

It's first time I see this error and don't know what it is.

I messed up policy apache or some kind of bug ?

I succeeded install postgresql and mysql by this method all-right.

Thanks for your quick response.

2007/12/2, Chris PeBenito <[email protected]>:

Quoted 13 lines · Shintaro Fujiwara
Quoted 10 lines

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

Which distro policy are you using?

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.
#4 lore raw

Here's I get.

# rpm -qa|grep selinux
libselinux-python-2.0.43-1.fc8
selinux-policy-mls-3.0.8-58.fc8
selinux-doc-1.26-1.1
selinux-policy-3.0.8-58.fc8
selinux-policy-targeted-3.0.8-58.fc8
libselinux-devel-2.0.43-1.fc8
libselinux-2.0.43-1.fc8
selinux-policy-devel-3.0.8-58.fc8

I really want to get F8 server run (apache)..

2007/12/3, Christopher J. PeBenito <[email protected]>:

Quoted 61 lines · Shintaro Fujiwara
Quoted 9 lines

Well, as a matter of fact, I installed apache from source. So, I installed apche into /usr/local/apache2.

I set /etc/selinux/config permissive and found that apache runs in initrc_t.
But, of course I want to make it run httpd_t.

So, I tried to edit your refpolicy downloading from repository, newest version.

And the remainder of the policy is which fedora policy version?

Quoted 20 lines

I commented every

type ...
bool ...
atribute...

including .if of templates.

and set them require {}.

I succeeded make apache.pp all-right, but when I tried to install by semodule -i apache.pp,
expand_terule_helper says it has an error.

I found exim module in services directory but could not found anything like process system_mail_t
I could not found those in tmp/apache.mod either.

It's first time I see this error and don't know what it is.

Quoted 21 lines

I messed up policy apache or some kind of bug ?

I succeeded install postgresql and mysql by this method all-right.

Thanks for your quick response.

2007/12/2, Chris PeBenito <[email protected]>:

Quoted 13 lines · Shintaro Fujiwara
Quoted 10 lines

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

Which distro policy are you using?

--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150

Signature · 16 lines
Shintaro Fujiwara
segatex project (SELinux policy tool)
http://sourceforge.net/projects/segatex/
Home page
http://intrajp.no-ip.com/
Blog
http://intrajp.no-ip.com/nucleus/
CMS
http://intrajp.no-ip.com/xoops/
Wiki
http://intrajp.no-ip.com/pukiwiki/

--
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.
#5 lore raw
In reply to Shintaro Fujiwara

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 12 lines · Shintaro Fujiwara

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

in mta.if,

mta_send_mail has the following

	domtrans_pattern($1, mailclient_exec_type, system_mail_t)
	allow system_mail_t mailclient_exec_type:file entrypoint;

And

interface(mta_mailclient',

	gen_require(`
		attribute mailclient_exec_type;
	')

	typeattribute $1 mailclient_exec_type;

')

In exim.te

mta_mailclient(exim_exec_t)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHVWAXrlYvE4MpobMRAsGsAJ9yGCZ4fMMuLn8FIf5V7IdOIjcYVgCeJVwo 45S6MoKx9nAW6430eJiaJNY=
=L/mO
-----END PGP SIGNATURE-----

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

#6 lore raw

2007/12/4, Daniel J Walsh <[email protected]>:

Quoted 33 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 12 lines · Shintaro Fujiwara

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

I can't find any lines concerning exim_exec_t anywhere... Please help.

in mta.if,

mta_send_mail has the following

domtrans_pattern($1, mailclient_exec_type, system_mail_t) allow system_mail_t mailclient_exec_type:file entrypoint;

And

interface(mta_mailclient',

        gen_require(`
                attribute mailclient_exec_type;
        ')

        typeattribute $1 mailclient_exec_type;
Quoted 6 lines

')

In exim.te

mta_mailclient(exim_exec_t)

Thank you, but, I commented line,

mta_send_mail(httpd_t)

and make apache.pp again but still I have an error. I'm stuck.

Quoted 9 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHVWAXrlYvE4MpobMRAsGsAJ9yGCZ4fMMuLn8FIf5V7IdOIjcYVgCeJVwo 45S6MoKx9nAW6430eJiaJNY=
=L/mO
-----END PGP SIGNATURE-----

Signature · 16 lines
Shintaro Fujiwara
segatex project (SELinux policy tool)
http://sourceforge.net/projects/segatex/
Home page
http://intrajp.no-ip.com/
Blog
http://intrajp.no-ip.com/nucleus/
CMS
http://intrajp.no-ip.com/xoops/
Wiki
http://intrajp.no-ip.com/pukiwiki/

--
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.
#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 31 lines · Shintaro Fujiwara

2007/12/4, Daniel J Walsh <[email protected]>:

Quoted 8 lines · Shintaro Fujiwara
Quoted 8 lines
Quoted 8 lines

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I can't find any lines concerning exim_exec_t anywhere... Please help.

in mta.if,

mta_send_mail has the following

domtrans_pattern($1, mailclient_exec_type, system_mail_t) allow system_mail_t mailclient_exec_type:file entrypoint;

And

interface(mta_mailclient',

        gen_require(`
                attribute mailclient_exec_type;
        ')

        typeattribute $1 mailclient_exec_type;
Quoted 16 lines

')
at

In exim.te

mta_mailclient(exim_exec_t)

Quoted 9 lines

Thank you, but, I commented line,

mta_send_mail(httpd_t)

and make apache.pp again but still I have an error. I'm stuck.

Same error? I would check your source file to make sure mta_send_mail is not coming from somewhere else.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHVh0CrlYvE4MpobMRAgRiAJ9zuF7+6nNB7JWxd+88aMhl1eHEEQCeLPpo DY9lWAfx29hWmugTTSrDw+c=
=P9KS
-----END PGP SIGNATURE-----

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

#8 lore raw

2007/12/5, Daniel J Walsh <[email protected]>:

Quoted 46 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 42 lines · Shintaro Fujiwara

2007/12/4, Daniel J Walsh <[email protected]>:

Quoted 8 lines · Shintaro Fujiwara
Quoted 8 lines
Quoted 8 lines

When I try to install apache.pp,

libsepol.expand_terule_helper: duplicate TE rule for httpd_t exim_exec_t:process system_mail_t libsepol.expand_module: Error during expand libsemanage.semanage_expand_sandbox: Expand module failed
semodule: Failed!

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I can't find any lines concerning exim_exec_t anywhere... Please help.

in mta.if,

mta_send_mail has the following

domtrans_pattern($1, mailclient_exec_type, system_mail_t) allow system_mail_t mailclient_exec_type:file entrypoint;

And

interface(mta_mailclient',

        gen_require(`
                attribute mailclient_exec_type;
        ')

        typeattribute $1 mailclient_exec_type;

')
at

In exim.te

mta_mailclient(exim_exec_t)

Quoted 3 lines

Thank you, but, I commented line,

mta_send_mail(httpd_t)

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

and make apache.pp again but still I have an error. I'm stuck.

Same error? I would check your source file to make sure mta_send_mail is not coming from somewhere else.

In apache.if, apache_content_template has

        #optional_policy(`
        #       mta_send_mail(httpd_$1_script_t)
        #')

So, I commented like above, and made apache.pp again, and this time I succeeded installing apache.pp.

Thank you very much, Mr. SELinux.

Quoted 9 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHVh0CrlYvE4MpobMRAgRiAJ9zuF7+6nNB7JWxd+88aMhl1eHEEQCeLPpo DY9lWAfx29hWmugTTSrDw+c=
=P9KS
-----END PGP SIGNATURE-----

Signature · 16 lines
Shintaro Fujiwara
segatex project (SELinux policy tool)
http://sourceforge.net/projects/segatex/
Home page
http://intrajp.no-ip.com/
Blog
http://intrajp.no-ip.com/nucleus/
CMS
http://intrajp.no-ip.com/xoops/
Wiki
http://intrajp.no-ip.com/pukiwiki/

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