All of lore.kernel.org
 help / color / mirror / Atom feed
* SETools not compiling, refpolicy modules not loading
@ 2012-03-02 23:00 Kovacsics Róbert
  2012-03-05 19:56 ` Stephen Smalley
  2012-03-06 17:37 ` Christopher J. PeBenito
  0 siblings, 2 replies; 3+ messages in thread
From: Kovacsics Róbert @ 2012-03-02 23:00 UTC (permalink / raw)
  To: SELinux

Hi!

It is me again, and after compiling SELinux, I went on to try to
compile SETools, as I read, stuff like audit2allow needs it because of
the python, so anyway it does not want to compile, saying that
"checking for corrected libsepol boolean expand behavior... configure:
error: this version of libsepol is incompatible with SETools", and I
have the latest SELinux, downloaded from the website. I did also try
with the latest SETools downloaded from SVN.

Also, another problem I have been having, is that when I try to load
refpolicy, it uses a lot of CPU (about the amount required for
compilation, then it just hangs there with low CPU after 5 minutes,
and anything I do to it ends with segfault.

Thank you for helping me,
Kovacsics Robert

--
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: SETools not compiling, refpolicy modules not loading
  2012-03-02 23:00 SETools not compiling, refpolicy modules not loading Kovacsics Róbert
@ 2012-03-05 19:56 ` Stephen Smalley
  2012-03-06 17:37 ` Christopher J. PeBenito
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2012-03-05 19:56 UTC (permalink / raw)
  To: Kovacsics Róbert; +Cc: SELinux

On Fri, 2012-03-02 at 23:00 +0000, Kovacsics Róbert wrote:
> Hi!
> 
> It is me again, and after compiling SELinux, I went on to try to
> compile SETools, as I read, stuff like audit2allow needs it because of
> the python, so anyway it does not want to compile, saying that
> "checking for corrected libsepol boolean expand behavior... configure:
> error: this version of libsepol is incompatible with SETools", and I
> have the latest SELinux, downloaded from the website. I did also try
> with the latest SETools downloaded from SVN.

setools isn't required for audit2allow (or anything else needed for
day-to-day usage of SELinux).  Only for policy analysis.  You likely
should report problems to their own alias/list or bug tracker.

> Also, another problem I have been having, is that when I try to load
> refpolicy, it uses a lot of CPU (about the amount required for
> compilation, then it just hangs there with low CPU after 5 minutes,
> and anything I do to it ends with segfault.

You need to provide more details, like the exact versions of
libsepol/checkpolicy/libsemanage/policycoreutils and refpolicy.  But
loading the full refpolicy can indeed be slow and require significant
memory.

-- 
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: SETools not compiling, refpolicy modules not loading
  2012-03-02 23:00 SETools not compiling, refpolicy modules not loading Kovacsics Róbert
  2012-03-05 19:56 ` Stephen Smalley
@ 2012-03-06 17:37 ` Christopher J. PeBenito
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2012-03-06 17:37 UTC (permalink / raw)
  To: Kovacsics Róbert; +Cc: SELinux

On 03/02/12 18:00, Kovacsics Róbert wrote:
> It is me again, and after compiling SELinux, I went on to try to
> compile SETools, as I read, stuff like audit2allow needs it because of
> the python, so anyway it does not want to compile, saying that
> "checking for corrected libsepol boolean expand behavior... configure:
> error: this version of libsepol is incompatible with SETools", and I
> have the latest SELinux, downloaded from the website. I did also try
> with the latest SETools downloaded from SVN.

I committed a fix that handles the new parameter in libsepol's role_set_expand() function, which may have a side effect of fixing your problem compiling SETools.  Can you update your checkout and retry?

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

--
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:[~2012-03-06 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 23:00 SETools not compiling, refpolicy modules not loading Kovacsics Róbert
2012-03-05 19:56 ` Stephen Smalley
2012-03-06 17:37 ` Christopher J. PeBenito

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.