Skip to contentSkip to conversation

issue on binary & source compatibility

DISCUSSION Park Lee 4 participants 4 messages Jun 1, 2004 – Jun 3, 2004 SELinux security module

lore
Share & tools
lore

Park Lee

author
#0 lore raw

Today,I saw an article named 'An Overview of Security Enhanced Linux' at http://www.kuro5hin.org/story/2001/6/17/0104/24701.

It says: At present SE Linux provides binary compatibility with existing applications, and source compatibility with kernel modules.

Then, I want to ask what the meaning and differences of 'binary compatibility' and 'source compatibility' are? and why it said so?

Thank you,
yours,
Park Lee
2004-06-01

---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger

#1 lore raw
Quoted 8 lines · Park Lee

Today,I saw an article named 'An Overview of Security Enhanced Linux' at http://www.kuro5hin.org/story/2001/6/17/0104/24701.

It says: At present SE Linux provides binary compatibility with existing applications, and source compatibility with kernel modules.

Then, I want to ask what the meaning and differences of 'binary compatibility' and 'source compatibility' are? and why it said so?

That article is dated June 2001, so it is rather old. The compatibility discussion is apparently taken from our FAQ, i.e.
http://www.nsa.gov/selinux/info/faq.cfm#I7. Source compatibility for kernel modules means that you don't need to modify the kernel module sources, but you do need to rebuild them against the modified kernel headers so that they pick up the extended kernel data structures that include security fields. However, with the integration of LSM into the mainline kernel, any kernel modules built against the mainline kernel will pick up the extended kernel data structures automatically. Hence, the answer in the FAQ (and that article) is out of date; kernel modules should be binary compatible as well.

Of course, some kernel modules may not interact well with SELinux without modification, e.g. if they directly allocate and set up kernel objects without using the normal core kernel initialization functions, then you could end up with kernel objects that lack proper security information. Some kernel modules may also lack proper security controls (or sufficiently fine-grained controls) over their operations; since LSM does hook capable() and permission(), SELinux can at least mirror all such checks performed by modules, but this may not always be adequate.

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.
#2 lore raw
In reply to Park Lee
Quoted 5 lines · Park Lee

It says: At present SE Linux provides binary compatibility with existing applications, and source compatibility with kernel modules.

Then, I want to ask what the meaning and differences of 'binary compatibility' and 'source compatibility' are? and why it said so?

Binary compatibility means that you don't have to recompile user programs to take advantage of the support (as opposed to, for instance some range-checking extensions to GCC which require a recompile, or the PaX stuff that doesn't add any protection to binaries that weren't linked with a modified binutils to add the PaX-defined elf header....

#3 lore raw

Hello,

Not so true anymore, look at the selinux-pax patch and policy files. You can now control pax via selinux policy.

Ed

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, June 02, 2004 2:56 PM
To: Park Lee
Cc: [email protected]
Subject: Re: issue on binary & source compatibility

On Tue, 01 Jun 2004 06:34:57 PDT, Park Lee <[email protected]> said:

extensions to GCC which require a recompile, or the PaX stuff that doesn't add any protection to binaries that weren't linked with a modified binutils to add the PaX-defined elf header....

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004

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