[SailfishDevel] Avahi error opening socket
Lukáš Karas
lukas.karas at centrum.cz
Thu Jan 18 17:50:10 UTC 2018
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-unsubscribe at lists.sailfishos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180118/73550acb/attachment.sig>
More information about the Devel
mailing list