Next policyrep patches
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Karl MacMillan
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.
Quoted 9 lines
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.handsrc/types.c.For existing components (like booleans), I would like to merge the record and component files. So
booleans.handboolean_record.hwould be merged. Objections?
fine with me.
Quoted 4 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 24 lines · Joshua Brindle
Quoted 5 lines · Karl MacMillan
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.Quoted 9 lines
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.handsrc/types.c.For existing components (like booleans), I would like to merge the record and component files. So
booleans.handboolean_record.hwould be merged. Objections?fine with me.
Quoted 4 lines
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.
Quoted 8 lines
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_modulefunction? 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.
Signature · 8 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 24 lines · Joshua Brindle
Quoted 5 lines · Karl MacMillan
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.Quoted 9 lines
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.handsrc/types.c.For existing components (like booleans), I would like to merge the record and component files. So
booleans.handboolean_record.hwould be merged. Objections?fine with me.
Quoted 4 lines
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.
Quoted 5 lines
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.
Quoted 3 lines
do we want to change the
API to reflect that difference or just leave the currentsepol_expand_modulefunction?
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.
Quoted 2 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.