| 884 | | $tmpoutput = ''; |
|---|
| 885 | | $tmpout = exec("selinuxenabled 2>&1", $tmpoutput, $sereturn); |
|---|
| 886 | | if ($sereturn == 0) { |
|---|
| | 884 | $tmpoutput; |
|---|
| | 885 | $tmpout = exec("getenforce", $tmpoutput, $sereturn); |
|---|
| | 886 | if (strtolower($tmpoutput[0]) === "enabled") { |
|---|
| | 887 | // this method seems better because disabled and premissive are the same |
|---|
| | 888 | // if a user installs and realizes selinux is running the other method |
|---|
| | 889 | // requires a reboot to get selinuxenabled to work after editing the selinux config |
|---|
| | 890 | // this will allow you to use setenforce 0 which turns selinux into premissive mode which |
|---|
| | 891 | // doesnt enforce, it just warns. |
|---|