Just guessing, don't need Avahi open raw socket? 
Try to add capability CAP_NET_RAW to your avahi binary.

sudo setcap cap_net_raw+p /path/to/avahi

Lukas

Dne čtvrtek 18. ledna 2018 16:53:03 CET Michael Fuchs napsal(a):
> Hi,
> 
> I'm trying to use avahi on Sailfish.
> 
> I built it here:
> 
> https://build.merproject.org/package/show/home:fooxl:sailfish/avahi-simple
> 
> In the emulator it runs fine by starting it via systemctl
> 
> # systemctl start avahi-daemon
> 
> The daemon forks and drops its privileges to avahi:avahi.
> 
> But on the device (JollaC) it complains about
>     socket() failed: Permission denied
> 
> If I start it with
> 
> # avahi-daemon --no-drop-root
> 
> as root, it runs also fine on the device.
> 
> Could somebody please give me a hint, how to investigate this issue?
> 
> greetz, Michael.
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to