Frage zu SELinux
Hallo,
ich verwende Ubuntu 14.04.2 und SELinux ist installiert. Ich möchte gern diese Anleitung durchführen.
Wenn ich aber den Befehl
ausführe, kommt diese Fehlermeldung:
Frage: Muss man irgendetwas konfigurieren oder nachinstallieren?
ich verwende Ubuntu 14.04.2 und SELinux ist installiert. Ich möchte gern diese Anleitung durchführen.
Wenn ich aber den Befehl
setsebool -P httpd_can_network_connect=1
ausführe, kommt diese Fehlermeldung:
Boolean httpd_can_network_connect is not defined
Frage: Muss man irgendetwas konfigurieren oder nachinstallieren?
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 314258
Url: https://administrator.de/forum/frage-zu-selinux-314258.html
Ausgedruckt am: 02.04.2025 um 06:04 Uhr
11 Kommentare
Neuester Kommentar

Moin,
teste erstmal mit folgendem Befehl welche Variablen unter Ubuntu dafür überhaupt existieren:
Unter CentOS gibt es die Variable "httpd_can_network_connect" definitiv und diese ist per default auf "on".
Außerdem solltest du mal auf 14.04.5 upgraden
VG
Val
teste erstmal mit folgendem Befehl welche Variablen unter Ubuntu dafür überhaupt existieren:
getsebool -a | grep http
Unter CentOS gibt es die Variable "httpd_can_network_connect" definitiv und diese ist per default auf "on".
Außerdem solltest du mal auf 14.04.5 upgraden
VG
Val

ok eher schlecht 
https://wiki.ubuntu.com/SELinux
Da Ubuntu auf AppArmor vertraut wird Selinux wohl nicht mehr wirklich gepflegt.
https://wiki.ubuntu.com/SELinux
Da Ubuntu auf AppArmor vertraut wird Selinux wohl nicht mehr wirklich gepflegt.

Hi,
you did not install the default policies for the most common daemons
https://wiki.debian.org/SELinux/Setup
But I would never use SELinux on "Ubuntu"...whooaa this sends cold shivers up and down my spine.

Get a secure distribution wich is based on RedHat!
It seems you don't know what you are doing there and why -> very bad combination.
Regards
you did not install the default policies for the most common daemons
https://wiki.debian.org/SELinux/Setup
But I would never use SELinux on "Ubuntu"...whooaa this sends cold shivers up and down my spine.
Get a secure distribution wich is based on RedHat!
It seems you don't know what you are doing there and why -> very bad combination.
Regards

It's not actively maintained anymore, and there are other security flaws around, you can read many of them on the web.
Ubuntu is not a good choice hosting internet facing websites, if it comes to security. Ubuntu is the beginners choice, but not the pro's.
http://www.serverlab.ca/tutorials/linux/web-servers-linux/configuring-s ...
And don't use the equal sign between variable and boolean value.
Ubuntu is not a good choice hosting internet facing websites, if it comes to security. Ubuntu is the beginners choice, but not the pro's.
something isn't defined
If the apache policies are not installed you won't get this variable, should be clear.http://www.serverlab.ca/tutorials/linux/web-servers-linux/configuring-s ...
And don't use the equal sign between variable and boolean value.

Ubuntu uses Apparmor, it's definitely not recommended to run SELinux on it, so don't do it if you use ubuntu!! You will run into a mess of problems. Trust me. I already developed some linux drivers, i know what i'm talking about...

btw. you don't need SELinux to solve your problem, if you have the problem of your posted link! This is only for RedHat like systems where SELinux and these labels are installed by default. This will not work on ubuntu.
If you want to additionally secure your environment in Ubuntu use Apparmor.
If you want to additionally secure your environment in Ubuntu use Apparmor.
Zitat von @129813:
Ubuntu uses Apparmor, it's definitely not recommended to run SELinux on it, so don't do it if you use ubuntu!! You will run into a mess of problems.
Dem kann man nur absolut zustimmen.Ubuntu uses Apparmor, it's definitely not recommended to run SELinux on it, so don't do it if you use ubuntu!! You will run into a mess of problems.
Lass die Finger davon. Als Anfänger wirst du damit nicht fertig, vor allem wenn's hinterher ans Updaten geht bekommst du richtig Probleme.
Grüße Uwe