* Next policyrep patches
@ 2007-04-27 15:03 Karl MacMillan
2007-04-27 15:40 ` Joshua Brindle
0 siblings, 1 reply; 4+ messages in thread
From: Karl MacMillan @ 2007-04-27 15:03 UTC (permalink / raw)
To: SE Linux
Here is my plan for the next set of policyrep patches:
1. Basic policy objects (sepol/policy.h). Basic object system and
top-level objects for the policy representation.
2. Policy components (each as a separate patch). For example, type
declarations (which would include type and typealias) would be a patch
adding include/sepol/types.h and src/types.c.
For existing components (like booleans), I would like to merge the
record and component files. So booleans.h and boolean_record.h would be
merged. Objections?
3. When all of the components are merged I'll send the parser changes.
This is the first patch that will cause breakage. Any objection to
checkmodule being broken for a while?
Karl
--
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] 4+ messages in thread
* Re: Next policyrep patches
2007-04-27 15:03 Next policyrep patches Karl MacMillan
@ 2007-04-27 15:40 ` Joshua Brindle
2007-04-27 15:55 ` Karl MacMillan
2007-04-27 15:56 ` Stephen Smalley
0 siblings, 2 replies; 4+ messages in thread
From: Joshua Brindle @ 2007-04-27 15:40 UTC (permalink / raw)
To: Karl MacMillan; +Cc: SE Linux
Karl MacMillan wrote:
> Here is my plan for the next set of policyrep patches:
>
> 1. Basic policy objects (sepol/policy.h). Basic object system and
> top-level objects for the policy representation.
>
> 2. Policy components (each as a separate patch). For example, type
> declarations (which would include type and typealias) would be a patch
> adding include/sepol/types.h and src/types.c.
>
> For existing components (like booleans), I would like to merge the
> record and component files. So booleans.h and boolean_record.h would be
> merged. Objections?
>
>
fine with me.
> 3. When all of the components are merged I'll send the parser changes.
> This is the first patch that will cause breakage. Any objection to
> checkmodule being broken for a while?
>
Its well understood that the branch is going to be broken for a while,
there is no way around that if we expect to do the development in a
distributed way.
I'd like the components and tree structure as soon as possible so that
we can start work on the linker and generator (expander).
This brings up some other questions, there is no such thing as an
expander anymore, its really a code generator, do we want to change the
API to reflect that difference or just leave the current
sepol_expand_module function? I guess the general question is, how
destructive are we looking to be with the exported API?
--
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] 4+ messages in thread
* Re: Next policyrep patches
2007-04-27 15:40 ` Joshua Brindle
@ 2007-04-27 15:55 ` Karl MacMillan
2007-04-27 15:56 ` Stephen Smalley
1 sibling, 0 replies; 4+ messages in thread
From: Karl MacMillan @ 2007-04-27 15:55 UTC (permalink / raw)
To: Joshua Brindle; +Cc: SE Linux
On Fri, 2007-04-27 at 11:40 -0400, Joshua Brindle wrote:
> Karl MacMillan wrote:
> > Here is my plan for the next set of policyrep patches:
> >
> > 1. Basic policy objects (sepol/policy.h). Basic object system and
> > top-level objects for the policy representation.
> >
> > 2. Policy components (each as a separate patch). For example, type
> > declarations (which would include type and typealias) would be a patch
> > adding include/sepol/types.h and src/types.c.
> >
> > For existing components (like booleans), I would like to merge the
> > record and component files. So booleans.h and boolean_record.h would be
> > merged. Objections?
> >
> >
> fine with me.
> > 3. When all of the components are merged I'll send the parser changes.
> > This is the first patch that will cause breakage. Any objection to
> > checkmodule being broken for a while?
> >
> Its well understood that the branch is going to be broken for a while,
> there is no way around that if we expect to do the development in a
> distributed way.
>
> I'd like the components and tree structure as soon as possible so that
> we can start work on the linker and generator (expander).
>
> This brings up some other questions, there is no such thing as an
> expander anymore, its really a code generator,
Seems basically the same to me - the current module format and the
policyrep format accomplish similar things in different ways.
> do we want to change the
> API to reflect that difference or just leave the current
> sepol_expand_module function?
It has to change somewhat because it won't be taking a policydb anymore.
We are also going to be working with sepol_policy objects, which can
have modules:
sepol_policy
|
|---- sepol_module ("foo")
| |
| |----- [statements]
|
|---- sepol_module ("bar")
|
|----- [statements]
So it seems like it should be:
sepol_policy_expand(struct sepol_handle *h, struct sepol_policy *p,
struct sepol_policydb **out, int check_constraints);
1. Why not allocate the out policy?
2. Seems like verbose or not should be handled via the debug options for
the handle.
> I guess the general question is, how
> destructive are we looking to be with the exported API?
Good question - I would prefer it to change as little as possible, but I
guess we need some changes.
Karl
--
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] 4+ messages in thread
* Re: Next policyrep patches
2007-04-27 15:40 ` Joshua Brindle
2007-04-27 15:55 ` Karl MacMillan
@ 2007-04-27 15:56 ` Stephen Smalley
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2007-04-27 15:56 UTC (permalink / raw)
To: Joshua Brindle; +Cc: Karl MacMillan, SE Linux, Daniel J Walsh
On Fri, 2007-04-27 at 11:40 -0400, Joshua Brindle wrote:
> Karl MacMillan wrote:
> > Here is my plan for the next set of policyrep patches:
> >
> > 1. Basic policy objects (sepol/policy.h). Basic object system and
> > top-level objects for the policy representation.
> >
> > 2. Policy components (each as a separate patch). For example, type
> > declarations (which would include type and typealias) would be a patch
> > adding include/sepol/types.h and src/types.c.
> >
> > For existing components (like booleans), I would like to merge the
> > record and component files. So booleans.h and boolean_record.h would be
> > merged. Objections?
> >
> >
> fine with me.
> > 3. When all of the components are merged I'll send the parser changes.
> > This is the first patch that will cause breakage. Any objection to
> > checkmodule being broken for a while?
> >
> Its well understood that the branch is going to be broken for a while,
> there is no way around that if we expect to do the development in a
> distributed way.
>
> I'd like the components and tree structure as soon as possible so that
> we can start work on the linker and generator (expander).
>
> This brings up some other questions, there is no such thing as an
> expander anymore, its really a code generator, do we want to change the
> API to reflect that difference or just leave the current
> sepol_expand_module function? I guess the general question is, how
> destructive are we looking to be with the exported API?
For interfaces that are only used within the core selinux userland code,
I'd say we have significant freedom to change and/or remove them,
particularly as we have incremented the .so version. For interfaces in
use by the selinux userland patches that have been integrated into
external packages, then we need to be more careful, although strictly
speaking we can make changes since we have changed the .so version there
as well.
The transition for distributions might be a bit painful though; we'll
ultimately need a mass rebuild to make the switch completely.
--
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] 4+ messages in thread
end of thread, other threads:[~2007-04-27 15:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27 15:03 Next policyrep patches Karl MacMillan
2007-04-27 15:40 ` Joshua Brindle
2007-04-27 15:55 ` Karl MacMillan
2007-04-27 15:56 ` 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.