Insufficient privileges and unavailability of clockdiff
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iputils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Package Version: iputils-clockdiff 3:20211215-1
Expect to happen: Use clockdiff as an unprivileged user.
What happened instead: Basic functions are not available for unprivileged users. When try to get the time difference between localhost and a remote, clockdiff fails with an error message ”Operation not permitted”.
clockdiff 185.125.190.21
clockdiff: nice: Operation not permitted
Problems: Clockdiff is configured with CAP_NET_RAW, but it is not sufficient, CAP_SYS_NICE is needed as well. After add CAP_SYS_NICE as root, the permission error is gone, but a "host is down" message is returned. We think that might be a problem too.
clockdiff -o 39.156.66.18
clockdiff: 39.156.66.18 is down
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: iputils-clockdiff 3:20211215-1
ProcVersionSign
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Dec 27 16:53:43 2023
InstallationDate: Installed on 2023-12-26 (0 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: iputils
UpgradeStatus: No upgrade log present (probably fresh install)