FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Join Date
    Jul 2008
    Location
    Mir space station
    Age
    48
    Posts
    737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to permanently disable selinux

    Hi all, i came across the following method of how to permanently disabling selinux and it's notifications. Although changing enforcement from the gui into permissive mode does most of the job, the notifications still pop-up when some applications are started.
    So to disable it do the following:

    open terminal as root and execute:

    su -
    gedit /etc/selinux/config
    and then change the SELINUX line to SELINUX=disabled

    # 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 - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of these two values:
    # targeted - Only targeted network daemons are protected.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted
    this is it. Now reboot the system and selinux will never bother you again.


    If you are not a Fedora user and you are using this forum just because we are cooler here then you will not find the /etc/selinux/config as in the fedora releases. What you need to do is to edit the kernel boot line and add selinux=0 at the end:

    root (hd0,0)
    kernel /boot/vmlinuz-x.x.xx-selinux-xxxxxxxxx ro root=/dev/hda1 nousb selinux=0
    #initrd /boot/initrd-x.x.xx-selinux-xxxxxxxxx.img
    reboot the system


    Hope it helps (helped me anyway )

    thanks
    Last edited by wvn; 14th July 2009 at 10:41 AM.

  2. #2
    Demz Guest
    good idea to post this if you wanna be hacked

  3. #3
    Join Date
    Jul 2008
    Location
    Mir space station
    Age
    48
    Posts
    737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still have my firewall Demz. I know that many people are annoyed by selinux. It is a matter of personal choice i believe.

  4. #4
    Demz Guest
    Quote Originally Posted by wvn
    still have my firewall Demz. I know that many people are annoyed by selinux. It is a matter of personal choice i believe.
    if Redhat thought a Normal firewall was good enough im sure they wouldnt have bothered with SeLinux

    i know leigh doesnt use it, either disabled it or puts it on permissive mode but he has other stuff to keep him secure. im sure it is a matter of choice but im sure when a few Redhat/Fedora devs come in here an see this there gonna be happy by such a thread on how to disable SeLinux
    Last edited by Demz; 14th July 2009 at 11:27 AM.

  5. #5
    Join Date
    Jun 2009
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Demz
    good idea to post this if you wanna be hacked
    Not necessarily.
    There are other ways as well to harden your system.
    Sometimes SELinux simply gets in the way.
    And some apps are too demanding to fiddle up out of the box working SEL policies,
    or are burdened on to the sysadmin as plain black box beasts without any documentation
    where the customers don't even give you time and resources to experiment.
    And not too seldom you are even required to disable it by install guides
    e.g. OpenVZ Quick Install and SELinux

  6. #6
    Demz Guest
    an sometimes a windows Firewall gets in the way to but hey lets disable that to. IMO its just lazy that one doesnt read the help files to correctly maintain selinux without disabling it

  7. #7
    stevea Guest
    SELinux is more about restricting damage once you've been hacked.
    There are some real reasons to disable it ... but "too demanding"' ... isn't usually one.

  8. #8
    Join Date
    Jul 2009
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, if selinux is as great as you say, how can you perform (I think) a simple task as installing adobe flash player plugin on firefox without selinux destroying every attempt? I have been something like 32 h trying to figure this out.

  9. #9
    Join Date
    Jun 2006
    Location
    Sylvan, Texas USA
    Posts
    26,075
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Have you tried setting SELinux to permissive mode, then using Dangermouse's "autoten" installer?

  10. #10
    Join Date
    Jul 2008
    Location
    Mir space station
    Age
    48
    Posts
    737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, permissive mode does help a lot, but everytime an application such as nerolinux or wicd the damn popups appeaing since it is on permissive mode, which do nothing but it just annoying.

  11. #11
    Join Date
    Jun 2006
    Location
    Sylvan, Texas USA
    Posts
    26,075
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ah, yes. To each his own, then.

  12. #12
    Join Date
    Sep 2008
    Location
    California
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wvn
    Yes, permissive mode does help a lot, but everytime an application such as nerolinux or wicd the damn popups appeaing since it is on permissive mode, which do nothing but it just annoying.
    With SEL in permissive mode, use those popups to guide changes to your SEL context.

    SEL is not a requirement for a secure system. Just make sure your passwords are strong and your ports are closed. Most distros don't have SEL.

    On the other hand, I think configuring SEL to work in your environment is worthwhile.
    Start SEL in permissive mode, use the popups, file bug reports, and give it a chance.

  13. #13
    Join Date
    Jul 2008
    Location
    Mir space station
    Age
    48
    Posts
    737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, i use fedora on home pc's and not on server. So i believe i do not need selinux for now.

  14. #14
    Join Date
    Jun 2009
    Location
    Champaign, IL
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SELinux is not a bad thing. Is it overkill for the typical end-user sitting at home behind a router/firewall? I think so. Would I want my publicly accessible SMTP/HTTP/MySQL/DNS/LDAP/..... server configured with every possible security measure? YES!!!

    Many problems with Windows in the past were due to the default user privilege being administrator because having everyone logout, login as adminstrator, install some app, logout, log back in as user would be inconvenient.

    Isn't SELinux doing the same?

    SELinux is very good for what it is and does. However, I don't think the NSA developed it for grandma's home PC.
    Fedora 16 | Intel i5-2500K @ 4.0GHz | 8GB DDR3 | Nvidia GTX 560Ti-448OC
    Mint 14 Xfce | AMD Phenom II N660 | 8GB | AMD HD4270

  15. #15
    Join Date
    Jul 2008
    Location
    Mir space station
    Age
    48
    Posts
    737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In my dictionary NSA=Paranoid

    As i mentioned above, no server here. Oh and btw, half the people in this forum are "grandmas", just using pc's at home.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 12th June 2009, 03:31 AM
  2. Disable Package Kit - PERMANENTLY
    By Vector in forum Using Fedora
    Replies: 8
    Last Post: 9th December 2008, 02:34 AM
  3. Can I permanently disable wireless in Gnome Network Manager Applet?
    By phantomrob in forum Servers & Networking
    Replies: 4
    Last Post: 12th July 2008, 06:04 PM
  4. How to modify selinux policy permanently?
    By Botond in forum Security and Privacy
    Replies: 0
    Last Post: 14th June 2007, 10:56 AM
  5. how to disable selinux
    By jan1024188 in forum Using Fedora
    Replies: 2
    Last Post: 5th November 2006, 03:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •