Insufficient privileges and unavailability of clockdiff

Bug #2047508 reported by Jingzi Meng
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 6.2.0-39.40~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
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)

Revision history for this message
Jingzi Meng (jingzi08) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.