From: ramsdell@mitre.org (John D. Ramsdell)
To: selinux@tycho.nsa.gov
Subject: Re: Fedora Core 2 setools RPM
Date: 17 Jun 2004 14:31:04 -0400 [thread overview]
Message-ID: <ogtoenic9zr.fsf@mitre.org> (raw)
In-Reply-To: <200406171535.i5HFZVSf032291@gotham.columbia.tresys.com>
"Karl MacMillan" <kmacmillan@tresys.com> writes:
> In general, we have not spent many resources addressing the use of
> libapol outside of setools.
>From my perspective, the application programmer's interface provided
by libapol seems to provide an attractive platform on top of which I
should be able to build a version of slat that can analyze binary
policy configuration files. The alternative for me is to cobble
something together from the sources in the checkpolicy directory. My
guess is that I would have to duplicate functionality already present
in libapol.
My greatest concern with using libapol for slat is that it seems to
provide no routines that expose CONSTRAIN statements in a policy.
When I did a grep on the sources, I notice the word "constrain" is not
in any header file but one, and libapol/binpol/borrowed.h contains the
following comment.
/* needed for constraints (which apol currently ignores */
John
$ grep -i constrain libapol/*.* libapol/*/*.*
libapol/apolicy_parse.y:/* from originial constraint.h */
libapol/apolicy_parse.y:typedef struct constraint_expr {
libapol/apolicy_parse.y: struct constraint_expr *left;
libapol/apolicy_parse.y: struct constraint_expr *right;
libapol/apolicy_parse.y:} constraint_expr_t;
libapol/apolicy_parse.y:/* end from constraint.h */
libapol/apolicy_parse.y:static int define_constraint(void);
libapol/apolicy_parse.y:static constraint_expr_t *define_cexpr(__u32 expr_type, __u32 arg1, __u32 arg2);
libapol/apolicy_parse.y:%token CONSTRAIN
libapol/apolicy_parse.y: opt_mls te_rbac users opt_constraints
libapol/apolicy_parse.y:/* added July 2002; made constraints optional */
libapol/apolicy_parse.y:opt_constraints : constraints
libapol/apolicy_parse.y:constraints : constraint_def
libapol/apolicy_parse.y: | constraints constraint_def
libapol/apolicy_parse.y:constraint_def : CONSTRAIN names names cexpr ';'
libapol/apolicy_parse.y: { if (define_constraint()) return -1; }
libapol/apolicy_parse.y:static int define_constraint(void)
libapol/apolicy_parse.y:static constraint_expr_t *
libapol/apolicy_parse.y: return (constraint_expr_t *)1; /* any non-NULL value */
libapol/apolicy_scan.l:CONSTRAIN |
libapol/apolicy_scan.l:constrain { return(CONSTRAIN); }
libapol/binpol/binpol.c: * buf[5] num constraints (ignore constraints) */
libapol/binpol/binpol.c: /* ignore constraints */
libapol/binpol/borrowed.h:/* needed for constraints (which apol currently ignores */
--
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.
next prev parent reply other threads:[~2004-06-17 18:31 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-15 21:07 Fedora Core 2 policy source Kratzer, James R.
2004-06-15 23:26 ` Fedora Core 2 setools RPM John D. Ramsdell
2004-06-16 13:37 ` Stephen Smalley
2004-06-16 16:58 ` Daniel J Walsh
2004-06-17 9:47 ` SE Linux enhanced strace for Fedora Core 2 John D. Ramsdell
2004-06-17 15:36 ` Fedora Core 2 setools RPM Karl MacMillan
2004-06-17 15:58 ` Stephen Smalley
2004-06-17 18:47 ` Karl MacMillan
2004-06-18 13:00 ` John D. Ramsdell
2004-06-18 14:13 ` Stephen Smalley
2004-06-18 17:26 ` Joshua D. Guttman
2004-06-18 17:51 ` Stephen Smalley
2004-06-18 18:18 ` Joshua D. Guttman
2004-06-18 18:43 ` Stephen Smalley
2004-06-18 19:31 ` Joshua D. Guttman
2004-06-18 20:09 ` Stephen Smalley
2004-06-21 13:16 ` Frank Mayer
2004-06-21 13:14 ` Frank Mayer
2004-06-21 13:43 ` Joshua D. Guttman
2004-06-21 15:26 ` Frank Mayer
2004-06-21 15:28 ` Frank Mayer
2004-06-19 5:33 ` Russell Coker
2004-06-19 13:09 ` Serge E. Hallyn
2004-06-18 13:09 ` John D. Ramsdell
2004-06-21 13:04 ` Frank Mayer
2004-06-21 15:43 ` John D. Ramsdell
2004-06-17 18:31 ` John D. Ramsdell [this message]
2004-06-15 23:33 ` Fedora Core 2 policy source John D. Ramsdell
2004-06-16 1:25 ` John D. Ramsdell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ogtoenic9zr.fsf@mitre.org \
--to=ramsdell@mitre.org \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.