A PPA with the proposed patch is available at https://launchpad.net/~athos-ribeiro/+archive/ubuntu/liboping-non- root/+packages
Unfortunately, there is no dep8 test suite for this package. ** Description changed: + [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 ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18 Uname: Linux 4.15.0-24-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair 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-256color - PATH=(custom, no user) - XDG_RUNTIME_DIR=<set> - SHELL=/bin/zsh + TERM=xterm-256color + PATH=(custom, no user) + XDG_RUNTIME_DIR=<set> + SHELL=/bin/zsh SourcePackage: liboping UpgradeStatus: No upgrade log present (probably fresh install) ** Attachment added: "1-1.10.0-1ubuntu0.1" https://bugs.launchpad.net/ubuntu/+source/liboping/+bug/1780746/+attachment/5543110/+files/1-1.10.0-1ubuntu0.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1780746 Title: oping (and noping) require root access to run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/liboping/+bug/1780746/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs