Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - mtr-git

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: mtr-git v0.86.r64.g85c7550-1

Git Clone URL: https://aur-dev.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.562499
First Submitted: 2015-10-12 11:17
Last Updated: 2016-06-23 16:56

Dependencies (2)

Required by (4)

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


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.