Quote:
Originally Posted by MrMagoo
Hi,
it seems that I oversaw some of the messages. New messages appear.
Here they are:
|
No, you made ifconfig permissive before and not hald_t so since now that these issues related to hald_t they a new.
Quote:
|
avc: denied { search } for pid=5525 comm="ifconfig" scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir
|
This could be allowed but i think it wants more after this. Best to make hald_t permissive (semanage permissive hald_t) and see what it really wants.
(put it back to: semanage permissive -d hald_t, after testing)
Quote:
|
avc: denied { name_bind } for pid=5490 comm="hal-dccm" src=990 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:ftps_port_t:s0 tclass=tcp_socket
|
Looks like hal-dccm wants to bind tcp sockets to port 990
Quote:
avc: denied { name_bind } for pid=5490 comm="hal-dccm" src=5679 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:dccm_port_t:s0 tclass=tcp_socket
Thanks for the help so far.
Dirk
|
Looks like hal_dccm wants to bind tcp socket to port 5679
You could probably add these to your current module already:
cd ~/mysysnetwork;
echo "corenet_tcp_bind_dccm_port(hald_t)" >> mysysnetwork.te;
echo "corenet_tcp_bind_ftps_port(hald_t)" >> mysysnetwork.te;
make -f /usr/share/selinux/devel/Makefile mysysnetwork.pp
semodule -i mysysnetwork.pp
As to the first denials; we should first try to figure out what hald_t is searching for, by making hald_t a permissive domain and testing. then look at the avc denials again and extend our module.
Since now also hald_t is in the mix might probably as well testing with the whole system in permissive mode instead of adding single permissive domains. This way all involved domains are allowed to do that they want. So that we can see the even bigger picture)
To put the full system in permissive mode: setenforce 0
to view selinux status: getenforce
to put the full system in enforcing mode: setenforce 1
so test in permissive mode, then back to enforcing mode.