移动安全系列 - SELinux发行版的支持

来源:互联网 发布:js animate 编辑:程序博客网 时间:2024/06/05 22:50

Hanks.Wang - 专注于操作系统与移动安全研究,Linux/SELinux/SEAndroid/TrustZone/Encription/MDM    Mail - byhankswang@gmail.com


SELinux发行版的支持


SELinux包含稳定版本/开发版本/历史版本。稳定版和开发版已经不再由NSA官方网站维护了,而是由Linux内核社区来维护;除了稳定版和开发版,SELinux早期的历史版本已经不在维护了,但是可以用来做参考。在Linux Kernel之外,把SELinux作为Open Source Project的的官方支持是 :http://selinuxproject.org/page/Main_Page


Linux发行版对SELinux的支持

Fedora对SELinux的支持: https://fedoraproject.org/wiki/SELinux

RedHat对SELinux的支持: https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/

Ubuntu对SELinux的支持: https://wiki.ubuntu.com/SELinux

Gentoo对SELinux的支持: http://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml


SELinux工具包的开源项目

除了需要在Linux内核支持SELinux之外,用户空间与SELinux配套的工具也需要集成到当前系统中,在Ubuntu/RedHat/Fedora中可以直接install相关的工具包。在自行编译的系统中需要重新编译和管理 SELinux Userspace Project相关的工具以及SELinux Reference Policy Project相关的Policy编辑和管理。

SELinux Userspace Project:   http://userspace.selinuxproject.org/trac

SELinux Reference Policy Project:  http://oss.tresys.com/projects/refpolicy/


SELinux早期的版本

原始的SELinux实现(Pre - LSM)

SELinux早期的雏形中,针对Linux Kernel 2.2.19 和 2.4.3中就已经有对SELinux实现的尝试,SELinux早期的实现是早于Linux Kernel中LSM模块的:

  • Original SELinux patch against kernel 2.2.19 (gzip)
  • Original SELinux patch against kernel 2.4.3 (gzip)
  • Original SELinux userland archive (6M tar gzip)
早期基于LSM的SELinux实现

在Linux Kernel 2.4.21 和 2.5.66版本,已经出现了基于LSM的SELinux的实现,这时候的版本要早于SELinux API的大幅修改和文件安全标签的使用,这时候的版本还没有为了在Linux mainline中集成的大量的修改:

  • LSM/SELinux patch against kernel 2.4.21 (gzip)
  • LSM/SELinux patch against kernel 2.5.66 (gzip)
  • LSM-based SELinux userland archive (9M tar gzip)
基于Linux Kenel2.4内核的SELinux
为了在Linux Kernel 2.6内核中的集成和使用,在Linux Kernel2.4.26版本中就已经做了大量的工作,但是任然缺少SELinux在 2.6内核中的许多增强功能:
  • SELinux patch against kernel 2.4.26 (gzip)
基于NFSv3的SELinux的实现
在Linux Kernel 2.6.11中实现了对NFS的支持,该Patch很好的实现了对于NFS文件系统的标签化:
  • SELinux NFS patch against kernel 2.6.11 (gzip)
  • SELinux NFS userland archive (3M tar gzip)
SELinux Policy样例
  • SELinux example policy (269K tar gzip)

Note: Linux is a registered trademark of Linus Torvalds




原创粉丝点击