* policy development library documentation
@ 2009-05-06 15:14 Mark Webb
2009-05-06 15:30 ` Daniel J Walsh
2009-05-06 16:46 ` Stephen Smalley
0 siblings, 2 replies; 3+ messages in thread
From: Mark Webb @ 2009-05-06 15:14 UTC (permalink / raw)
To: selinux
Greetings,
I am interested in writing a tool that will open and process a policy
file. I was looking around and was unable to determine the proper
libraries to do this as most of the tools are written in python and
the libs are written in C, so tracing is a little more difficult. I
would like to write this tool in C.
So my question is; where can I find documentation on the libraries
that would do this work? I have the source code for the setools
project, and do not see much for documentation of the functions.
Thanks,
Mark
--
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: policy development library documentation
2009-05-06 15:14 policy development library documentation Mark Webb
@ 2009-05-06 15:30 ` Daniel J Walsh
2009-05-06 16:46 ` Stephen Smalley
1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2009-05-06 15:30 UTC (permalink / raw)
To: Mark Webb; +Cc: selinux
On 05/06/2009 11:14 AM, Mark Webb wrote:
> Greetings,
>
> I am interested in writing a tool that will open and process a policy
> file. I was looking around and was unable to determine the proper
> libraries to do this as most of the tools are written in python and
> the libs are written in C, so tracing is a little more difficult. I
> would like to write this tool in C.
>
> So my question is; where can I find documentation on the libraries
> that would do this work? I have the source code for the setools
> project, and do not see much for documentation of the functions.
>
> Thanks,
> Mark
>
> --
> 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.
Look at libsepol, libsemanage and libapol
--
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: policy development library documentation
2009-05-06 15:14 policy development library documentation Mark Webb
2009-05-06 15:30 ` Daniel J Walsh
@ 2009-05-06 16:46 ` Stephen Smalley
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2009-05-06 16:46 UTC (permalink / raw)
To: Mark Webb; +Cc: selinux
On Wed, 2009-05-06 at 11:14 -0400, Mark Webb wrote:
> Greetings,
>
> I am interested in writing a tool that will open and process a policy
> file. I was looking around and was unable to determine the proper
> libraries to do this as most of the tools are written in python and
> the libs are written in C, so tracing is a little more difficult. I
> would like to write this tool in C.
>
> So my question is; where can I find documentation on the libraries
> that would do this work? I have the source code for the setools
> project, and do not see much for documentation of the functions.
libsepol contains what you need to load a policy file and manipulate it.
It is unfortunately rather lacking in documentation.
libsepol was originally created by taking the core logic from
checkpolicy and moving it into a library so that it could be re-used by
other programs. Since that time, a number of the policy analysis tools
have migrated to using libsepol as well, at least for processing the
binary policy.
--
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
end of thread, other threads:[~2009-05-06 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 15:14 policy development library documentation Mark Webb
2009-05-06 15:30 ` Daniel J Walsh
2009-05-06 16:46 ` Stephen Smalley
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.