Skip to contentSkip to conversation

CIL compiler

DISCUSSION Richard Haines 2 participants 2 messages Sep 16, 2011 SELinux security module

lore
Share & tools
lore
#0 lore raw

Steve,

Please find attached the 'optional' problem code. There is a README in the tarball + all the modules.

Thanks for your help.
Richard

Quoted 60 lines · Steve Lawrence

From: Steve Lawrence <[email protected]>
Subject: Re: CIL compiler
To: "Richard Haines" <[email protected]>
Cc: [email protected]
Date: Thursday, 15 September, 2011, 18:48

Quoted 3 lines · Richard Haines

Thanks for the Initial SID fix. It works fine.

I've been experimenting with CIL using a basic base

policy (similar to mdp) and blocks to build binary policy files. I've checked these with apol and loaded them with only two issues found so far:

Great! We love to get feedback.

Quoted 1 line

1) The 'booleanif' does not expand the AV or TYPE

rules into the binary. apol does not list anything under 'Conditional Expressions' and the policy will not load.

Yes, we discovered that issue this week, and believe we have a fix, but
are unsure if it's the 'right' fix. Hopefully, we'll have this resolved
soon.

Quoted 1 line

2) The 'optional' sections are not expanded into the

binary when the dependencies are resolved. The policy is still loadable.

This seems to work correctly for me. Can you provide the CIL code you're
using that's not working?

Quoted 1 line

I also notice that as the CIL dev team work through

the changes, the policy requirements change slightly. For example the allow rule format changed because of the permission set changes and the roles for object_r need to be fully defined. These are not an issue - just noting them in case others are testing CIL as well.

Yes, the language is still somewhat in flux so some things will break.
When we do a release we'll give a full list of what changed. But if
you're playing with the latest and greatest from git, things might break
without warning. We'll try to keep the wiki up to date with the current
git repo though, so that should be a source of what's new (the
permission set changes haven't made it to the wiki yet, though). If you
notice anything missing, please let us know and we'll make sure we get
it fixed.

Thanks,
- Steve

#1 lore raw

Looks like just a typo. The second typetransition rule in the optional move_file references out_file_t, which should be move_file.out_file_t.

out_file_t is out of scope, so the optional always fails, even if move_file.cil is included.

- Steve

Quoted 69 lines · Richard Haines

Steve,

Please find attached the 'optional' problem code. There is a README in the tarball + all the modules.

Thanks for your help.
Richard

Quoted 60 lines · Steve Lawrence

From: Steve Lawrence <[email protected]>
Subject: Re: CIL compiler
To: "Richard Haines" <[email protected]>
Cc: [email protected]
Date: Thursday, 15 September, 2011, 18:48

Quoted 3 lines · Richard Haines

Thanks for the Initial SID fix. It works fine.

I've been experimenting with CIL using a basic base

policy (similar to mdp) and blocks to build binary policy files. I've checked these with apol and loaded them with only two issues found so far:

Great! We love to get feedback.

Quoted 1 line

1) The 'booleanif' does not expand the AV or TYPE

rules into the binary. apol does not list anything under 'Conditional Expressions' and the policy will not load.

Yes, we discovered that issue this week, and believe we have a fix, but
are unsure if it's the 'right' fix. Hopefully, we'll have this resolved
soon.

Quoted 1 line

2) The 'optional' sections are not expanded into the

binary when the dependencies are resolved. The policy is still loadable.

This seems to work correctly for me. Can you provide the CIL code you're
using that's not working?

Quoted 1 line

I also notice that as the CIL dev team work through

the changes, the policy requirements change slightly. For example the allow rule format changed because of the permission set changes and the roles for object_r need to be fully defined. These are not an issue - just noting them in case others are testing CIL as well.

Yes, the language is still somewhat in flux so some things will break.
When we do a release we'll give a full list of what changed. But if
you're playing with the latest and greatest from git, things might break
without warning. We'll try to keep the wiki up to date with the current
git repo though, so that should be a source of what's new (the
permission set changes haven't made it to the wiki yet, though). If you
notice anything missing, please let us know and we'll make sure we get
it fixed.

Thanks,
- Steve

--
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.