The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Virtualization and Cloud Computing
.
google unix.com



Virtualization and Cloud Computing Xen, VMWare, hypervisors, Amazon Elastic Computing Cloud, EC2, virtual storage, Amazon S3 and other cloud computing topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot open SELinux encrypted disks jasonfrost Red Hat 3 06-02-2009 09:58 PM
Amazon Simple Queue Service (Amazon SQS) iBot Complex Event Processing RSS News 0 01-01-2009 11:00 AM
CEP as a Service (CEPaaS) with MapReduce on Amazon EC2 and Amazon S3 iBot Virtualization and Cloud Computing 0 11-25-2008 02:08 PM
Running MySQL on Amazon EC2 with Elastic Block Store Neo Virtualization and Cloud Computing 0 09-11-2008 10:22 AM
SElinux moxxx68 UNIX for Advanced & Expert Users 1 04-14-2005 08:56 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-18-2009
fun_indra fun_indra is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 3
Question anyone running SELinux on amazon EC2?

Hi,
Has anyone enabled SELinux on Amazon EC2?
I tried to enable SELinux using a CentOS image, and the steps in the following post, but it didn't work!!
Amazon Web Services Developer Community : Has anyone successfully enabled SELinux ...

The steps i took:
1)I started with CentOS 5.3 base image (ami-10b55379)
2) yum install sel*
3) Everything installs correctly, however "sestatus" shows that SELinux is disabled
4) /etc/sysconfig/selinux shows enforcing mode
5) touch /.autorelabel
6) reboot

Even after reboot, "sestatus" shows that SELinux is disabled!!

Any help/suggestions in this matter is quite appreciated.

Thanks,
indra

Last edited by vbe; 08-19-2009 at 09:06 AM.. Reason: rm tags for rule compliance
  #2 (permalink)  
Old 08-19-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Please provide the full output from sestatus

What is the type of your filesystem? ext3? SELinux on Fedora/Redhat/Centos depends on filesystems that support extended attributes.

Check that /selinux/disable is not set to 1. Should be 0 or empty.
  #3 (permalink)  
Old 08-19-2009
fun_indra fun_indra is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 3
Here is the output from sestatus:
-bash-3.2# sestatus
SELinux status: disabled

I am using ext3 as the filesystem. The config file shows "CONFIG_EXT3_FS_XATTR=y",
so I assume extended attributes are enabled.

/selinux/disable is empty. Output:

-bash-3.2# ls -l /selinux/
total 0
  #4 (permalink)  
Old 08-19-2009
chompy chompy is offline
Registered User
  
 

Join Date: Aug 2009
Location: pwd
Posts: 65
What happens when you run:
Code:
setenforce enforcing
  #5 (permalink)  
Old 08-19-2009
fun_indra fun_indra is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 3
-bash-3.2# setenforce enforcing
setenforce: SELinux is disabled
  #6 (permalink)  
Old 08-21-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Back to basics then ....

Have a look at /var/log/dmesg. Do you see the following lines
Code:
Security Framework initialized
SELinux: Initializing
Have a look at /etc/sysconfig/selinux/config. Is SELINUX set to enforcing or permissive and SELINUXTYPE set to targeted?

In /var/log/boot.log, do you see a line which shows that auditd started OK?
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0