What's the relationship between existing mls files?
Dear sir,
Quoted 1 line · you
The source code was then subsequently forked and has gradually >diverged as the kernel code has been further specialized. The >checkpolicy core code has more recently been pushed into libsepol to >allow re-use by other components and was reworked at the same time >to shed the legacy aspects.
Then, If I change one of the files, I must change it's countpart, Am I right?
Don't the kernel code and the core code refer to the same thing? (please forgive my ignorance)
Thank you.
--
Best Regards,
Park Lee <[email protected]>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 2 lines · Park Lee
Then, If I change one of the files, I must change it's countpart, Am I right?
If you make a change to anything that affects the security server logic or the binary policy format, then you need to change both the libsepol code and the kernel code, yes. You could revise the internal data structures of one or the other without necessarily changing the other, e.g. for optimization purposes, as long as the logic itself remains consistent and the binary policy format is unchanged. But it is preferable to keep the code as consistent as possible.
Quoted 2 lines
Don't the kernel code and the core code refer to the same thing? (please forgive my ignorance)
As I said, originally checkpolicy was built from the same core source code as the kernel security server using macros to convert kernel types and APIs to corresponding userland ones, but the code was forked to allow specialization and to avoid requiring a copy of the kernel source tree for building checkpolicy. So the libsepol code and the linux-2.6/security/selinux/ss code originated from the same code base and implements the same basic logic.
Signature · 8 lines
Stephen Smalley <[email protected]> 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.