Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 07-14-2008, 08:20 PM   #1
Registered: Aug 2003
Location: Texas
Distribution: Fedora 9
Posts: 177

Rep: Reputation: 30
Question selinux refuses to let me add ports

I am totally confused! When I was using FD8 I was able to add ports in Selinux: Network Port. Now I am using FD9 and it will not do so. In fact, selinux in FD8 gave you the ability to remove or add among other variations I cannot even remember and FD9 does not. OH YES, it does pop up a tiny window that implies you can add a port but it then gives error messages when you try to add a port.

libsepol.context_from_record: type webcam_port_t is not defined
libsepol.context_from_record: could not create context structure (Invalid argument).
libsepol.port_from_record: could not create port structure for range 6891:6891 (tcp) (Invalid argument).
libsepol.sepol_port_modify: could not load port range 6891 - 6891 (tcp) (Invalid argument).
libsemanage.dbase_policydb_modify: could not modify record value (Invalid argument).
libsemanage.semanage_base_merge_components: could not merge local modifications into policy (Invalid argument).
/usr/sbin/semanage: Could not add port tcp/6891

I read some previously posted questions others have posted and only one came anywhere near my situation. It had stated that the person was not able to add ports, but after he disabled and then re-enabled selinux he was then able to do so. I, of course, tried to do the above and suddenly all my menus in KDE are mixed with Gnome and some things in the menu are missing. I really do not understand how the menus could have been affected, but selinux still is not permitting me to add ports.

Does anyone have any idea what is happening here?
I am not sure how this would make any difference but I am using an AMD Phenom computer with 2gb memory and as stated Fedora 9.
Old 07-15-2008, 01:20 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Unless you are really hardcore about SELinux, I would just recommend disabling it altogether. It seems to cause more headaches than it's worth. I harden and secure my systems without the help of SELinux.
Old 07-16-2008, 02:33 AM   #3
Registered: Aug 2003
Location: Texas
Distribution: Fedora 9
Posts: 177

Original Poster
Rep: Reputation: 30
Question Harden and secure without Selinux?

I actually agree with you about disabling selinux, trickykid. That was what I used to do before about halfway through FD8 and then it seemed to work as long as I used it permissibly. Now I guess it is screwed up as bad as usual.

I know this is a little off of my original thread, but it is still related to selinux and security. Forgive me if I should have written a different thread.

In any case, would you be able to give me some advice, possibly even some instructions, about how to harden and secure my computer? I am particularly interested in doing the best I can, as cheaply as I can since I am on a low retirement pension, mostly because two to six weeks ago someone hacked into my computer. Besides crashing my computer, they aslo stole my bank information and somehow directed my bank to add a phone number to my account that was actually a direct computer connection (I called it and got the usual beep shrill type sound when a computer connects.

Happily, I caught it quick enough to change everything, including reinstalling everything on my computer, but whoever has my IP and I practically live in my computer.

Can you help me?

Last edited by maestro52; 07-16-2008 at 02:36 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 04:36 AM
how? redirect apache2 outbound ports to specific ports w/iptables? nowshining Linux - Security 5 05-27-2008 03:46 AM
Add more USB ports timinator Fedora 2 05-17-2007 02:52 PM
system-config-securitylevel no longer allows me to add ports to allow. KTheorem Linux - Security 4 08-30-2006 12:56 AM
add ports brilinux01 Linux - Networking 1 08-19-2004 02:13 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration