Results 1 to 2 of 2

Thread: Explain SELinux setsebool and getsebool commands

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    46
    Thanks
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default Explain SELinux setsebool and getsebool commands

    I want to know the clear function of "setsebool" & "getsebool" with semanage in a very easy & understandable language.

    Please help ASAP.

    Kindly provide me some good documentation for SELinux.

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 804 Times in 511 Posts
    Rep Power
    10

    Default

    The setsebool is used to set SELinux boolean value i.e. various configurtions can be enabled or disabled using this tool. In other words, the setsebool command switches on and off the protection of Selinux. Type getsebool -a to see all such options which can be enabled or disabled at run time:
    Code:
    getsebool -a
    For example, if httpd_disable_trans set to 1, it will disable SELinux protection for Apache web server. To disable it, enter:
    Code:
    setsebool httpd_disable_trans 1
    To enable it, enter:
    Code:
    setsebool httpd_disable_trans 0
    The following should give you a pretty complete listing of all the samba switches:
    Code:
    getsebool -a | grep "*samba*"
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Explain SQL Injection, DoS Attack, BotNet
    By shanthiavari in forum Linux software
    Replies: 4
    Last Post: 15th March 2011, 07:38 PM
  2. Execute commands via ssh
    By java.beans in forum CentOS / RHEL / Fedora
    Replies: 4
    Last Post: 1st May 2009, 07:35 PM
  3. SELinux and DNS Issues
    By jgijanto in forum Domain Name Server
    Replies: 2
    Last Post: 14th November 2008, 12:49 AM
  4. Explain networking Hub, Switch, Router Devices
    By shanthiavari in forum Linux software
    Replies: 3
    Last Post: 8th November 2008, 07:43 AM
  5. Can someone please explain this to me
    By gyterpena in forum Shell scripting
    Replies: 2
    Last Post: 29th December 2007, 12:25 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
  •