Re: Why does checkpolicy need libsepol-static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2008-02-28 at 10:13 -0500, Eric Paris wrote:
> I noticed while working on open permissions that checkmodule actually is
> being linked statically to libsepol.a.  Why?  This means that when
> adding a new capability in libsepol we have to recompile checkpolicy.
> Just wondering why we do it this way.
> 
> -Eric 'does not know the toolchain' Paris

libsepol was originally created by taking the guts of checkpolicy and
moving them into a library, to allow reuse by some other programs.
We've created shared library interfaces for it over time to support such
programs, but for programs that are tightly coupled to the core data
structures and logic like checkpolicy and setools, we've kept using the
static library.  We would need to provide an abstraction layer for
everything in libsepol if we wanted to completely use the shared library
for checkpolicy and setools.  policyrep might help there, at least for
modules.

-- 
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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux