Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to solve an issue where my HTTPD is denied access to binding custom ports and I believe it has to do with SELinux. Whilst doing some googling I came across some posts where users were typing semanage followed with flags and commands to view certain data. In following these posts I too typed in semanage, but it's not on my system.

Results of yum list *semanage*:

Installed Packages
  libsemanage.x86_64 | 2.0.43-4.el6 | @anaconda-CentOS-201106060106.x86_64/6.0
Available Packages
  libsemanage-devel.x86_64 | 2.0.43-4.el6 | base                                    
  libsemanage-python.x86_64 | 2.0.43-4.el6 | base                                    
  libsemanage-static.x86_64 | 2.0.43-4.el6 | base

Is the binary available in one of these other packages?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The script is in the policycoreutils-python:

[root@kerberos home]# rpm -qf /usr/sbin/semanage
policycoreutils-python-2.0.83-19.8.el6_0.x86_64

Installing via yum will give you the following:

==================================================================================================================================================================================================================================================
 Package                                                            Arch                                               Version                                                          Repository                                           Size
==================================================================================================================================================================================================================================================
Installing:
 policycoreutils-python                                             x86_64                                             2.0.83-19.8.el6_0                                                updates                                             334 k
Installing for dependencies:
 audit-libs-python                                                  x86_64                                             2.0.4-1.el6                                                      base                                                 56 k
 libselinux-python                                                  x86_64                                             2.0.94-2.el6                                                     base                                                201 k
 libsemanage-python                                                 x86_64                                             2.0.43-4.el6                                                     base                                                 81 k
 setools-libs                                                       x86_64                                             3.3.7-4.el6                                                      base                                                400 k
 setools-libs-python                                                x86_64                                             3.3.7-4.el6                                                      base                                                222 k

Transaction Summary
==================================================================================================================================================================================================================================================
Install       6 Package(s)
Upgrade       0 Package(s)
share|improve this answer
1  
That's it! Thanks. Apparently yum allows us to do yum provides /usr/bin/semanage and it will also list out the packages with the binary. –  Mike Purcell Dec 10 '11 at 0:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.