SELinux » History » Version 3
Lukas Zapletal, 07/19/2013 10:19 AM
1 | 1 | Lukas Zapletal | h1. SELinux |
---|---|---|---|
2 | |||
3 | Foreman RHEL6 release fully supports SELinux. Currently the following processes are confined: |
||
4 | |||
5 | * Foreman Rails application running under Passenger |
||
6 | |||
7 | 2 | Lukas Zapletal | Our policy lives in: https://github.com/theforeman/foreman-selinux |
8 | 1 | Lukas Zapletal | |
9 | h2. How to report errors |
||
10 | |||
11 | Please open ordinary issues and set component to "SELinux". Also give us information about how to reproduce denials and full log from the audit.log: |
||
12 | |||
13 | grep AVC /var/log/audit/audit.log |
||
14 | |||
15 | Providing information via foreman-debug command also helps us with investigating. |
||
16 | |||
17 | h2. Tips for debugging |
||
18 | |||
19 | 3 | Lukas Zapletal | If you identify part of code you want to test separatey, you can run a script in passenger_t policy easily |
20 | 1 | Lukas Zapletal | |
21 | 3 | Lukas Zapletal | runcon -u system_u -r system_r -t unconfined_t -- runcon -t passenger_t -- your_script.rb |
22 | 1 | Lukas Zapletal | |
23 | To reinitialize selinux use |
||
24 | |||
25 | semodule -B |
||
26 | |||
27 | or |
||
28 | |||
29 | setenforce 1 && setenforce 0 |