Skip to contentSkip to conversation

Architectural doubts

DISCUSSION Juan González 3 participants 5 messages Jan 6, 2005 – Jan 7, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

SELinux is currently implemented as an LSM module or is a variant of LSM itself?

Thanks,
Juan

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

#1 lore raw
Quoted 1 line · Juan González

SELinux is currently implemented as an LSM module or is a variant of LSM itself?

As a module that relies on the LSM framework. SELinux started life as its own kernel patch implementing the Flask architecture in the Linux kernel, with the security policy logic encapsulated in the security server (policy engine). Then, when the LSM project was started, the SELinux project participated in the development of the LSM framework and SELinux was rewritten to use LSM, encapsulating all of SELinux (including the Flask architecture and the security server) within the SELinux module. Then both LSM and SELinux were merged into the mainline kernel, and are both included in Linux 2.6.

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

Me question is, SELinux and LSM share the method to catch system entry, via hooks.
I'm right?¿

Juan

Quoted 13 lines · Stephen Smalley
Quoted 1 line · Juan González

SELinux is currently implemented as an LSM module or is a variant of LSM itself?

As a module that relies on the LSM framework. SELinux started life as its own kernel patch implementing the Flask architecture in the Linux kernel, with the security policy logic encapsulated in the security server (policy engine). Then, when the LSM project was started, the SELinux project participated in the development of the LSM framework and SELinux was rewritten to use LSM, encapsulating all of SELinux (including the Flask architecture and the security server) within the SELinux module. Then both LSM and SELinux were merged into the mainline kernel, and are both included in Linux 2.6.

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

#3 lore raw

Hi,

Quoted 4 lines · Juan González

Me question is, SELinux and LSM share the method to catch system entry, via hooks.
I'm right?¿

Of course yes. LSM is all about hooks. There are 167+ hooks in the kernel which implement MAC (Mandatory Access Control) parallel to good old DAC (Discretionary Access Control).

Jaspreet

Quoted 26 lines · Stephen Smalley
Quoted 13 lines · Juan González
Quoted 1 line

SELinux is currently implemented as an LSM module or is a variant of LSM itself?

As a module that relies on the LSM framework. SELinux started life as its own kernel patch implementing the Flask architecture in the Linux kernel, with the security policy logic encapsulated in the security server (policy engine). Then, when the LSM project was started, the SELinux project participated in the development of the LSM framework and SELinux was rewritten to use LSM, encapsulating all of SELinux (including the Flask architecture and the security server) within the SELinux module. Then both LSM and SELinux were merged into the mainline kernel, and are both included in Linux 2.6.

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

Signature · 4 lines
--
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.
#4 lore raw
In reply to Juan González
Quoted 3 lines · Juan González

Me question is, SELinux and LSM share the method to catch system entry, via hooks.
I'm right?

LSM defines the hook interfaces and locations, and SELinux implements the hook functions with its own processing.

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.