Как предотвратить установку SELinux с CentOS 6.5

506
SixDegrees

Я знаю, что могу отключить SELinux в CentOS 6.5, но я бы предпочел просто не устанавливать его вообще с точки зрения первоначальной установки. Но я не могу найти нигде в установщике CentOS, чтобы отключить его. Это возможно?

0

1 ответ на вопрос

0
RTarson

On some of the Linux distribution SELinux is enabled by default, which may cause some unwanted issues, if you don’t understand how SELinux works and the fundamental details on how to configure it.

I strongly recommend that you understand SELinux and implement it on your environment. But, until you understand the implementation details of SELinux you may want to disable it to avoid some unnecessary issues.

To disable SELinux you can use any one of the 4 different methods mentioned in this article. The SELinux will enforce security policies including the mandatory access controls defined by the US Department of Defence using the Linux Security Module (LSM) defined in the Linux Kernel. Every files and process in the system will be tagged with specific labels that will be used by the SELinux. You can use Is -Z and view those labels as shown below:

# ls -Z /etc/ -rw-r--r-- root root system_u:object_r:etc_t:s0 a2ps.cfg -rw-r--r-- root root system_u:object_r:adjtime_t:s0 adjtime -rw-r--r-- root root system_u:object_r:etc_aliases_t:s0 aliases drwxr-x--- root root system_u:object_r:auditd_etc_t:s0 audit drwxr-xr-x root root system_u:object_r:etc_runtime_t:s0 blkid drwxr-xr-x root root system_u:object_r:bluetooth_conf_t:s0 bluetooth drwx------ root root system_u:object_r:system_cron_spool_t:s0 cron.d -rw-rw-r-- root disk system_u:object_r:amanda_dumpdates_t:s0 dumpdates 

See more suggestions on disabling here hope this helps! Still having problems then I will help but have a look. It comes defult so there's no way of blacking from installing.

ХОРОШО. Я уже знаю, как отключить SELinux; Я надеялся вообще пропустить установку, так как мы не будем использовать ее в этом проекте. Удивительно, но включение SELinux увеличивает время загрузки на несколько секунд, и в нашем случае очень важно максимально сократить время загрузки. Между тем вероятность несанкционированного доступа мала, поэтому безопасность не является приоритетной задачей. SixDegrees 9 лет назад 0
Что ж. Если у меня SELinux, мое время загрузки совсем не плохо, моя система занимает около 4-6 секунд на моих серверах. Я искал в Интернете и не мог найти много о том, как полностью очистить ОС от SElinux. Теперь вы разработчик? Вот почему вам нужно время загрузки? Вы можете попробовать обновить системное оборудование RTarson 9 лет назад 0

Похожие вопросы