oping (and noping) require root access to run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
liboping (Debian) |
Fix Released
|
Unknown
|
|||
liboping (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
oping and noping needs root access to run. This hinders these tools usage in a given machine, making them useless for some users.
[Test Plan]
The bug can be reproduced in a bionic container/vm, with:
# apt update
# apt install -y oping
# oping -c1 localhost
# noping -c1 localhost
Verify that the 2 last commands worked as expected
# adduser -q --disabled-password --gecos reproducer reproducer
# su reproducer
$ oping -c1 localhost
$ noping -c1 localhost
Verify that the 2 last commands failed with
"ping_send failed: Operation not permitted"
After applying the proposed patch, the steps that would fail for the reproducer above, should no longer fail.
[Where problems could occur]
While the same patch is applied over the same version as the one in jammy, jammy also carry a couple, apparently unrelated, patches. This could lead to unexpected code paths that were not caught through reviews. Moreover,
the bionic package was last built during the artful development cycle, and new versions of build dependencies are available, which could trigger unexpected behaviors.
[Other Info]
This has been fixed since focal, therefore, the SRU should only apply to bionic
[Original message]
oping www.google.com
PING www.google.com (216.58.198.36) 56 bytes of data.
ping_send failed: Operation not permitted
This should be runnable as a normal user
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: oping 1.10.0-1build1
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Jul 9 10:35:59 2018
InstallationDate: Installed on 2018-07-03 (5 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
SHELL=/bin/zsh
SourcePackage: liboping
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in liboping (Debian): | |
status: | Unknown → Fix Released |
Changed in liboping (Ubuntu): | |
status: | New → Fix Released |
Changed in liboping (Ubuntu Bionic): | |
status: | New → Triaged |
I've attached the Debian bug that was used to track this. It is fixed there and that version is found in Ubuntu Cosmic. The specific fix would need to be SRU'ed back to Bionic.