Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you expect this to work on Linux?

    # sudo getcap ./arpchat 
      ./arpchat cap_net_raw=ep
I receive "error getting channel, might be missing permissions"

edit: the received error is from arpchat, not any of the setcap setup.



not sure if your formatting is messed up, but these commands should work:

    $ sudo setcap CAP_NET_RAW+ep ./arpchat
    $ ./arpchat
perhaps try sudo on the arpchat binary if not


That was me showing you that setcap had, in fact, been called. That's why it's the output of getcap.

I tried it with sudo and it also failed with the same message.

I've tried it on an arch-based laptop and a debian-based laptop with the same results.


By modifying Cargo.toml slightly, I no longer got the same error, which seems to somehow relate to pnet library.

   pnet = "0.34.0"
Interestingly with Arch it worked fine for me before, but with my Pi, I got the permission error, but changing the pnet ver seemed to fix anyway.


This fixed it for me.

Regarding Arch, I updated everything earlier today but I am running the LTS kernel.


i see. hmmmmm ... that's not supposed to happen, and it works fine on both nixos and ubuntu for me. may be something funky going on, i'll see if i can take a look sometime soon.


Using the prebuilt binary works. Building from source does not.


If you use SELinux, you might want to check /var/log/audit/audit.log




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: