LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   how do you know if selinux is enabled in SLES 11 (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-you-know-if-selinux-is-enabled-in-sles-11-a-4175498842/)

redhatwannabe 03-20-2014 06:29 AM

how do you know if selinux is enabled in SLES 11
 
hi,

from https://www.suse.com/documentation/s...eneral.selinux

Quote:


As part of the “basic enablement”, SELinux will not be officially supported, but packages have now been added to SUSE Linux Enterprise Server 11 to enable its usage with minimal effort. While AppArmor is much easier to use and has a similar feature set, knowing both will most certainly be beneficial.
and from http://www.cyberciti.biz/faq/howto-turn-off-selinux/

Quote:


For all other Linux distros edit your boot loader config file (LILO or GRUB boot loader config file such as /boot/grub/grub.conf). Find the kernel line, append enforcing=0 at the end:
what if I don't have /boot/grub/grub/conf files

Code:


kumar:~ # ls -l /boot/grub/
total 204
-rw-r--r-- 1 root root  8608 May 11  2013 e2fs_stage1_5
-rw-r--r-- 1 root root  7872 May 11  2013 fat_stage1_5
-rw-r--r-- 1 root root  7136 May 11  2013 ffs_stage1_5
-rw-r--r-- 1 root root  7136 May 11  2013 iso9660_stage1_5
-rw-r--r-- 1 root root  8576 May 11  2013 jfs_stage1_5
-rw-r--r-- 1 root root  7296 May 11  2013 minix_stage1_5
-rw-r--r-- 1 root root  9632 May 11  2013 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 May 11  2013 stage1
-rw-r--r-- 1 root root 102250 Feb 28 16:49 stage2
-rw-r--r-- 1 root root  7456 May 11  2013 ufs2_stage1_5
-rw-r--r-- 1 root root  6688 May 11  2013 vstafs_stage1_5
-rw-r--r-- 1 root root  9320 May 11  2013 xfs_stage1_5

is it still enabled?

thanks!

unSpawn 03-20-2014 05:06 PM

How about
Code:

selinuxenabled && echo yes || echo no

John VV 03-20-2014 05:12 PM

for starters
you had to install the software needed for it
you had to start building your own custom kernels , to use it
you had to create your own rules from audit2alow

you "can" get it up and running BUT ....

if none of the above were done then SE can not be running

i had SE running on OpenSUSE 11.3
it was so much trouble i did not install it on 12


NOW on Fedora ,RHEL it runs SMOOTHLY
very well and with no large amount of effort


All times are GMT -5. The time now is 09:53 AM.