Package Details: mtr-git v0.92.r2.g4924a3f-1

Git Clone URL: https://aur.archlinux.org/mtr-git.git (read-only)
Package Base: mtr-git
Description: Combines the functionality of traceroute and ping into one tool (CLI version, git)
Upstream URL: http://www.bitwizard.nl/mtr/
Licenses: GPL
Conflicts: mtr
Provides: mtr
Submitter: Narthorn
Maintainer: Narthorn
Last Packager: Narthorn
Votes: 3
Popularity: 0.000042
First Submitted: 2015-10-12 11:17
Last Updated: 2017-06-11 21:33

Dependencies (2)

Required by (2)

Sources (1)

Latest Comments

Narthorn commented on 2016-06-10 17:25

Hey, thanks for the heads-up ! I added a post-install script to set the capability.

There was a pacman patch (https://lists.archlinux.org/pipermail/pacman-dev/2014-April/018998.html) that was supposed to let makepkg retain the file capabilities during packaging, but it apparently never made it into the main build.

zorun commented on 2016-06-09 12:56

Hi,

A recent commit has switched from setuid root to a capability: https://github.com/traviscross/mtr/commit/9e4b090e856f0a89b4104e7cb440e4a90a17a853

However, it does not seem to work on my system:

$ mtr www.example.com
mtr: unable to get raw sockets.

According to https://wiki.archlinux.org/index.php/Capabilities the capability is missing:

$ getcap /usr/bin/ping
/usr/bin/ping = cap_net_raw+ep
$ getcap /usr/bin/mtr
$

So, the binary has no capability and is no longer setuid root, so it does not have enough permissions to work as non-root. Is it possible that makepkg removes capabilities when packaging? A workaround would be to add the capability in a post-install script.