GIT Update not working?
-
Something isn’t matching properly.
Unless you setup “permissive” SELinux AFTER trying to install the messages make no sense at all.
-
@palloquin said in GIT Update not working?:
kudos for the clear linux noob explanations there!
Thank you.
I need to spend a few weeknights remaking some of these videos so they are (more) current.
-
Having SELinux in permissive mode doesn’t block or prevent anything. The purpose of permissive mode is for SELinux to throw all the messages that it would if it were enforcing and blocking, but not actually block anything - so you can continue to run your application and tune SELinux.
-
Hi Quazz, Tom, Wayne,
I’m just a simple boy from Windows-Country lost in the big Linux-city… all y’all be speaking linux lingo to me hoping I’ll undestand
@Quazz :
sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinux sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/selinux/config
doesn’t compute:
[root@localhost bin]# sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinux sed: warning: failed to get security context of /etc/sysconfig/selinux: No data available[root@localhost bin]# [root@localhost bin]# sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/selinux/config sed: warning: failed to get security context of /etc/selinux/config: No data available[root@localhost bin]#
next:
[root@localhost bin]# service iptables stop Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: Unit iptables.service not loaded. [root@localhost bin]# Failed to stop iptables.service: Unit iptables.service not loaded.
makes sense I guess, I tried to kill that one dead a while ago, I run in a network I trust this machine is not connected to the outside world.
-
@palloquin We still don’t know what distribution of Linux you’re running, we require this information.
-
@Wayne-Workman
Sorry:Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327.36.3.el7.x86_64 Architecture: x86-64
-
Solved it.
I did:
SELINUX=disabled
and then rebooted.
install worked after that, now running:
Running Version 1.3.4-RC-2 SVN Revision: 6063
What is the advised way to leave SELinux? disabled? permissive? or enforcing?
Thanks all!
-
@palloquin selinux should be left permissive. Disabling it is strongly advised against, since it requires a bit of work to properly enable selinux once disabled.
-
@Joe-Schmitt Pretty sure FOG doesn’t work properly in permissive mode on Centos 7 which is why it’s recommended to disabled it as per https://wiki.fogproject.org/wiki/index.php/Installation_on_CentOS_7
-
@Quazz that is incorrect. Permissive mode will absolutely work if configured correctly.
-
@Joe-Schmitt It was in permissive for OP and did not work, though
-
to add to the discussion, it seem to run just fine. just updating failed.
-
@palloquin how did you set SELinux to permissive mode? To repeat, permissive mode will absolutely work if completely set.
To expand why disabling SELinux is not advised: SELinux works by labeling files on your system. In permissive mode the labeling still takes place, but no policies are actually enforced. But when you disable SELinux that labeling system is shut off. To re-enable SELinux once disabled, it’s going to take some time. You would first have to set SELinux back into permissive mode (NEVER set back into enforced once disabled unless you know SELinux well). Once your kernel boots back into permissive mode, you would need to initiate a full filesystem relabeling which can take some time. Once that finishes you can finally safely enable SELinux.
-
@Joe-Schmitt
Uh, I really don’t know. I suppose I followed some install instruction…I suppose I set
SELINUX=permissive
and
setenforce=0?
-
@palloquin alright. I ask because the output of your
sestatus
command indicates some modifications of other selinux files (e.g./sys/fs/selinux/deny_unknown
and/sys/fs/selinux/mls
). In general all that is needed to make SELinux permissive is to run:setenforce 0
to set the runtime selinux enforcement policy- Edit
/etc/selinux/config
to readSELINUX=permissive
instead ofSELINUX=enforcing
But since selinux was already disabled, there’s no point in doing this now (your server setup will be fine and everything should work as normal). I do want to point out though to any @Moderators who maintain the wiki that tutorials should not instruct users to disable selinux, but instead set to permissive.
-
@Quazz said in GIT Update not working?:
@Joe-Schmitt It was in permissive for OP and did not work, though
If it was really in permissive mode and still not working, then it’s not an issue with SELinux. That older article on CentOS 7 is incorrect.