Mailinglist Archive: opensuse-bugs (3349 mails)

< Previous Next >
[Bug 978596] New: arp-scan is terminated by SIGSEGV when run as normal user
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 05 May 2016 08:16:55 +0000
  • Message-id: <bug-978596-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=978596


Bug ID: 978596
Summary: arp-scan is terminated by SIGSEGV when run as normal
user
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.1
Hardware: x86-64
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Network
Assignee: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
Reporter: thebenj808@xxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

Hello,

The arp-scan package crashes and burns when run as a regular user:
`arp-scan -I eth0 --localnet terminated by signal SIGSEGV (Address boundary
error)`

Initially I thought this was an issue with the program itself, maybe something
had gone wrong during the build process, but I noticed the following with
strace.

--- snip ---

socket(PF_PACKET, SOCK_RAW, 0) = -1 EPERM (Operation not permitted)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++

--- snip ---

This looked to be a permission error, so I ran arp-scan as root and everything
was fine. The command executed successfully.

Now, I'm not too familiar with this program, but wouldn't it be better to
complain of insufficient privileges rather than SIGSEGV?

Steps to reproduce:
1) Install arp-scan package from official repositories or the Security project.
2) Run arp-scan as an unprivileged user

I was able to reproduce the error in both Leap 42.1 and Tumbleweed.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >