Search Criteria
Package Details: mtr-git v0.93.r36.gb4d3983-1
Git Clone URL: | https://aur.archlinux.org/mtr-git.git (read-only, click to copy) |
---|---|
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: | |
Conflicts: | |
Provides: | |
Submitter: | Narthorn |
Maintainer: | Narthorn |
Last Packager: | Narthorn |
Votes: | 4 |
Popularity: | 0.000001 |
First Submitted: | 2015-10-12 11:17 |
Last Updated: | 2020-02-08 05:17 |
Dependencies (2)
- ncurses (ncurses-nohex, ncurses-git)
- git (git-git) (make)
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.