user2804578
user2804578

Reputation: 32

Can't find setsebool / getsebool in Fedora 20

Due to SELinux keeps preventing symlinks in /var/www/html/ to /home/<user>/path/to/project/in Fedora 20, I have to use setsebool / getsebool to let SELinux allow httpd to enable homedirs (using $ setsebool -P httpd_enable_homedirs 1 according to sealert). But it seems that Fedora 20 doesn't have this tool installed.. I only got command not found..., and I can't find in which package those tools ships with, so I can yum install it..

Are those tools obsolete or do I have to install additional package? Another suggestions to solve the symlinks issue (no, I don't accept $ sudo chmod or whatsoever has to do with changing permissions) are welcome too.


Answer

It seems that you have to log in to the terminal as root, in case you have policycoreutils already installed:

$ sudo -i
[sudo] password for <root username>:
$ getsebool <whatever>
$ setsebool <stuffs>

Upvotes: 0

Views: 8863

Answers (1)

TomH
TomH

Reputation: 9260

They're in the policycoreutils package, which you can install with yum:

sudo yum install policycoreutils

Alternatively, an easy way to install a file when you don't know what package it's in is to just ask to install the file, for example:

sudo yum install /usr/sbin/setsebool

Upvotes: 5

Related Questions