Hello,

 

I am trying to make two distinctive applications communicate through a tcp
localhost connection in the port 30080.

 

Using the guide in:

 
<https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apppro
gramming%2Fhtml%2Fguide%2Fnet%2Fsockets.htm>
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprog
ramming%2Fhtml%2Fguide%2Fnet%2Fsockets.htm

I am able to start the Socket in the "server" application and make it listen
for connections.

 

But when starting the Client, a system error (E_SYSTEM) is triggered as soon
as the application tries to Connect (Connect() function) to the server.

 

Looking for an error in the kernel ring buffer I've found the following:

[16544.726057] type=1400 audit(1374518386.625:2708): lsm=SMACK
fn=smack_socket_sock_rcv_skb action=denied subject="<Client_App_ID>"
object="<Service_App_ID>" requested=w pid=8540 comm="<Client_App_NAME>"
saddr=127.0.0.1 src=59752 daddr=127.0.0.1 dest=30080 netif=lo

 

As I have added in Client and Service the permission
"http://tizen.org/privilege/socket"; its addition of course is not a
solution.

 

Compiling the Sample "SocketChat" I had the same problem, the server works
and the client cannot connect to it.

 

Does anyone has experienced some similar issue or even knows something about
Smack rules denying access to tcp sockets?

 

Ps.: I've done the work using MessagePort but as I am studying the platform,
the next challenge is using Tizen Socket interface J

 

Thanks in advance,

Wagner Andrade

_______________________________________________
Application-dev mailing list
Application-dev@lists.tizen.org
https://lists.tizen.org/listinfo/application-dev

Reply via email to