Nodecon configuration question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i've a question for limiting network-access on my selinux installation. The 
system which one i'm using is a debian lenny with the default policys and a 
selfmade creation of java.pp and wine.pp. 

Now i would limit the access for the wine programms to 5 or 6 ip addresses 
from the local network. 

That is what i was trying:
At the first step i changed the inaddr_any_node_t type in the corenetwork.te 
file to one of my needed ip addresses to test if it would work with a minimal 
configuration change.
like this:

type inaddr_any_node_t alias node_inaddr_any_t, node_type;
nodecon 10.10.10.10 255.255.255.255 
gen_context(system_u:object_r:inaddr_any_node_t,s0)

Typed a "make" and copied the base.pp into 
the /etc/selinux/default/modules/active/ directory.

In the selfmade wine.te configuration i typed following:

allow wine_t inaddr_any_node_t:tcp_socket node_bind;

Every time i finished the make i reboot the system with the new base.pp. The 
wine configuration is alway this one i want to have. ("semodule -l | grep 
wine" shows the right version)

But after starting a wine programm f.e. putty.exe it cant get a right 
connection to the test-host. Everytime i get the message from putty: Unable 
to open connection to 10.10.10.10 Network error: Permission denied"

I think something is not right in my configuration or in my train of 
thoughts.. 

I would be very happy if someone can give me a food for thought.

Greetings
Thomas Bludau

-- 
Thomas Bludau <selinux-thomas@xxxxxxxxxx> (Senior Consultant)

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux