All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Is the CIL project still active
@ 2012-07-29 20:10 Richard Haines
  2012-07-30 14:05 ` James Carter
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Haines @ 2012-07-29 20:10 UTC (permalink / raw)
  To: Joshua Brindle; +Cc: jwcart2, Jeremy Solt, selinux

I'm only planning to run this in the same way as checkpolicy so not
worried about AOSP etc.

I'm using the most suitable CIL statements (block, macro etc.), but as
the policy is limited, not that many. I've converted all modules to
blocks, figured out the classmap/classmapping statements and almost
finished, although I'll probably wait for the next CIL release as I
have come across three minor problems:

1) Cannot call a macro within a booleanif block.

2) The mlsconstrain statements seem to be generated in reverse order but
   need to check manually as APOL etc doesn't handle them. Are there any
   utilities that will allow me to compare mlsconstrain statements within
   a binary policy?

3) Cannot generate a file context without at least one category (example
   always wants s0:c0-s0:c0 instead of the normal s0).

Otherwise the current CIL compiler is running well.

Richard

--- On Tue, 24/7/12, Joshua Brindle <method@manicmethod.com> wrote:

> From: Joshua Brindle <method@manicmethod.com>
> Subject: Re: Is the CIL project still active
> To: "Richard Haines" <richard_c_haines@btinternet.com>
> Cc: jwcart2@tycho.nsa.gov, "Jeremy Solt" <jsolt@tresys.com>, selinux@tycho.nsa.gov
> Date: Tuesday, 24 July, 2012, 13:29
> Richard Haines wrote:
> > Glad to hear its still going as I started converting
> the Android
> > policy to CIL using the current compiler that works ok
> so far. However
> > I'm having problems defining 'sets of classes' for
> example with M4:
> 
> Since it is a small policy it should be possible to do a
> real, semantic 
> conversion (using blocks and ignoring legacy file types). Is
> that what 
> you are doing?
> 
> However, I'm not sure if CIL will be able to be in Android
> anytime soon. 
> It could still be used on the host side like
> checkpolicy/libsepol are 
> now but since CIL is currently statically linked against
> libsepol (GPL) 
> it would be prohibited in the AOSP userspace IIUC.
> 
> >
> > define(`dir_file_class_set (dir file lnk_file sock_file
> fifo_file
> > chr_file blk_file))
> >
> > I've tried various methods using classmap/classmapping
> etc. but failed
> > to work out how to define in CIL:
> >
> > mlsconstrain dir_file_class_set { create relabelfrom
> relabelto }
> > (l2 eq h2 and (l1 eq l2 or t1 == mlstrustedsubject));
> >
> > I can produce CIL mlsconstrain statements when I define
> them with each
> > class separately but not as a set. Is it possible with
> the current
> > release of CIL ? (if not I'll just produce an entry for
> each class so
> > I can continue).
> >
> > Thanks
> > Richard
> >
> >
> > --- On Fri, 20/7/12, James Carter<jwcart2@tycho.nsa.gov>
> wrote:
> >
> >> From: James Carter<jwcart2@tycho.nsa.gov>
> >> Subject: Re: Is the CIL project still active
> >> To: "Richard Haines"<richard_c_haines@btinternet.com>
> >> Cc: selinux@tycho.nsa.gov
> >> Date: Friday, 20 July, 2012, 20:13
> >> On Fri, 2012-07-20 at 19:39 +0100,
> >> Richard Haines wrote:
> >>> Does anyone know the status of the CIL project
> as it
> >> looked useful and would seem ideal for SEAndroid.
> >>
> >> There are still a few more bugs that need to be
> fixed so
> >> that it can
> >> correctly compile a CIL-transformed Refpolicy.
> Progress has
> >> been slow
> >> recently, but it is not going to be abandoned.
> >>
> >> --
> >> James Carter<jwcart2@tycho.nsa.gov>
> >> 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.
> >
> 
> --
> 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.
>




--
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] 13+ messages in thread
* Is the CIL project still active
@ 2012-07-20 18:39 Richard Haines
  2012-07-20 19:13 ` James Carter
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Haines @ 2012-07-20 18:39 UTC (permalink / raw)
  To: selinux

Does anyone know the status of the CIL project as it looked useful and would seem ideal for SEAndroid.

Richard


--
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] 13+ messages in thread

end of thread, other threads:[~2012-07-30 20:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 20:10 Is the CIL project still active Richard Haines
2012-07-30 14:05 ` James Carter
2012-07-30 18:36   ` Richard Haines
2012-07-30 20:00     ` Stephen Smalley
2012-07-30 20:01       ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2012-07-20 18:39 Richard Haines
2012-07-20 19:13 ` James Carter
2012-07-20 19:54   ` Radzykewycz, T (Radzy)
2012-07-20 20:08     ` Nogin, Aleksey
2012-07-20 20:17     ` James Carter
2012-07-20 20:22   ` Jeremy Solt
2012-07-22 13:06   ` Richard Haines
2012-07-24 12:29     ` Joshua Brindle

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.