Difference between revisions of "SE Linux Troubleshooting"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "<ref>http://www.serverlab.ca/tutorials/linux/administration-linux/troubleshooting-selinux-centos-red-hat/</ref> <pre> yum install setroubleshoot setools sealert -a /var/log/au...")
 
Line 4: Line 4:
 
sealert -a /var/log/audit/audit.log
 
sealert -a /var/log/audit/audit.log
 
</pre>
 
</pre>
 +
==Configure SELinux on Amazon Linux AMI==
 +
<ref>http://www.chrisumbel.com/article/selinux_amazon_aws_ec2_ami_linux</ref>
 +
*Install packages
 +
<pre>
 +
yum install libselinux libselinux-utils selinux-policy-minimum selinux-policy-mls selinux-policy-targeted policycoreutils
 +
</pre>
 +
*Edit grub boot options
 +
<pre>
 +
Edit /etc/grub.conf and change selinux=0 to selinux=1, then add security=selinux enforcing=1
 +
 +
</pre>
 +
*

Revision as of 11:34, 11 December 2017

[1]

yum install setroubleshoot setools
sealert -a /var/log/audit/audit.log

Configure SELinux on Amazon Linux AMI

[2]

  • Install packages
yum install libselinux libselinux-utils selinux-policy-minimum selinux-policy-mls selinux-policy-targeted policycoreutils 
  • Edit grub boot options
Edit /etc/grub.conf and change selinux=0 to selinux=1, then add security=selinux enforcing=1

  • http://www.serverlab.ca/tutorials/linux/administration-linux/troubleshooting-selinux-centos-red-hat/
  • http://www.chrisumbel.com/article/selinux_amazon_aws_ec2_ami_linux