To participate in the forum you must have a YML.COM account. For the time being, accounts on YML.COM are by invitation only. If you know me and would like to participate here, please contact me directly here.

There is now some basic documentation for the forum.

Subscribe to RSS Feed
General Forum -> SELinux anyone?
Not logged in.
2010-03-10 17:11:34
1 of 21
#4006
Do any of your guys use SELinux in any of your linux installs?
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-10 19:21:08
2 of 21
#4007
in reply to #4006
Beyond turning it off at install time so far, no.
--------------------------------------------------
duncansterling.com
Posted by: buffalo
2010-03-10 20:07:54
3 of 21
#4009
in reply to #4007
Ditto for me.
--
Ryan Chapin
======================================================================
Nuts & Bolts Interactive, Inc. http://www.nbinteractive.com
Builders of Intelligent Business Websites and Database Solutions
Posted by: 647
2010-03-10 20:08:47
4 of 21
#4010
in reply to #4009
I ran into a 'formVista doesn't run because of SELinux" problem. More info here:

http://formvista.com/fv-b-12-143/On-Fedora-Core-12--SEL...
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-10 20:28:44
5 of 21
#4012
in reply to #4006
Not here.

BTW, you guys don't know what you're missing by not using OpenBSD.
Posted by: Ian
2010-03-10 22:34:53
6 of 21
#4015
in reply to #4012
Things have really changed for me. In the old days it was about the underlying technologies, but these days it's really just about what let's me run the apps I want to the most easily.

I have to admit Fedora is not bad. If I were in some hard core technical shop, I could see running BSD just to stay close to the OS and keep the skills up. But that's just not where I am these days.
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-10 22:54:51
7 of 21
#4018
in reply to #4015

Yermo wrote
Things have really changed for me. In the old days it was about the underlying technologies, but these days it's really just about what let's me run the apps I want to the most easily.


That is somewhat applicable for a workstation or laptop, but not for a server. I assumed you were talking about servers.
Posted by: Ian
2010-03-10 22:57:06
8 of 21
#4019
in reply to #4018
Oops. Sorry. I wasn't clear. I'm running Fedora as a desktop and it has SELinux turned on by default.

I figured since if I ever get any adoption for formVista I'll run into this problem again I'd delve into it.

It'll just be a matter of time before RHEL/CentOS enforce SELinux as well.

But yea, for a server I could see running BSD, but then again I'd probably miss the auto-updates.
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-10 23:55:35
9 of 21
#4021
in reply to #4019

Yermo wrote

But yea, for a server I could see running BSD, but then again I'd probably miss the auto-updates. ;)


Updates can be automated if you like, though their philosophy questions the merits of automatic updates on a server. But being a rather secure system by default, updates are less frequent and generally less critical.
Posted by: Ian
2010-03-11 00:25:55
10 of 21
#4022
in reply to #4021
Yea, I can certainly understand that perspective. But given incredible time constraints I just don't have the kind of time necessary to manually manage a box to that degree any more ...
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-13 19:34:17
11 of 21
#4054
in reply to #4019
It seems some distributions have it on by default. How do I tell if it is on on my box?
Posted by: MikeS
2010-03-13 19:39:19
12 of 21
#4055
in reply to #4054
Depending on the distribution you are using you can check:

/etc/sysconfig/selinux

For instance, under Fedora Core 12 the contents of that file on my box are:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

which indicates it's turned on in enforcing mode. Permissive sets it to log all SELinux security issues but allows them through.
---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
2010-03-13 19:49:24
13 of 21
#4056
in reply to #4055
I was on the CentOS home page looking for something else and found another answer: sestatus

[root@Ferb spath]# /usr/sbin/sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted

This actually tells me that it is running and what mode it is in.
Posted by: MikeS
2010-03-13 19:50:32
14 of 21
#4057
in reply to #4056
Now that I know it is enabled, is that a good thing or a bad thing that it's enabled?
Posted by: MikeS
2010-03-13 19:57:09
15 of 21
#4058
in reply to #4057
From a security perspective it's a good thing. SELinux greatly expands the kinds of permissions the system keeps track of.

Using SELinux you can, for instance, specify that the web daemon (httpd) is only allowed to write to specific directories or prevent it from making outgoing network connections, etc. Unfortunately, all this flexibility brings with it tremendous complexity.

So it often happens that when SELinux is enabled, programs like Google Earth end up not working.

Most people turn it off because of the hassle it represents.

---------------------------------------------------------
Software Developer & Entrepreneur, DTLink Software
Merciless Overlord of YML.COM.
Posted by: Yermo
1 2 >>