Re: User-space controlled raw ethernet - Is this the way to go?



Andrew Greensted wrote:

I want to be able to send raw ethernet frames between the two. I've looked at libpcap, libdnet and direct socket code. For each of these I've got something working, BUT, they all seem to need root permissions to do low level ethernet frame sending and receiving.

There's a reason for this. Low level ethernet frame processing lets you spoof to your heart's content...so by default only root is allowed to do it.

If you can get the root privileges to install a kernel module, can't you make the executable setuid root?

Chris
.



Relevant Pages

  • Re: Changing to su problem
    ... >> to make sure it always gets started with root permissions). ... The above shows how the setuid bit can be set. ... ful not to have loopholes that would enable a user to execute arbi- ...
    (comp.unix.programmer)
  • Re: Info: Pioneer DVR-A06 CD/DVD Writer with cdrecord / solaris 9
    ... as it is faster to just call cdrecord from root than to make it suid. ... sending a SCSI command. ... As cdrecord tries to remove its root permissions as soon as possible for ...
    (comp.unix.solaris)
  • RE: [Full-Disclosure] Re: bzip2 bombs still causes problems in antivirus-software
    ... Linux/Unix (which need normally root permissions to get access on all files ... that technical implementation of the antivirus software like e.g. ... insecure permissions on /tmp files and others ...
    (Full-Disclosure)
  • Re: edit text files as root
    ... In Ubuntu one can edit the text files as root using the "Edit as Root" ... But that is from command line. ... But to edit ~/file.txt I do not need root permissions. ...
    (Debian-User)
  • Re: edit text files as root
    ... In Ubuntu one can edit the text files as root using the "Edit as Root" ... But that is from command line. ... But to edit ~/file.txt I do not need root permissions. ...
    (Debian-User)