Page MenuHomeFreeBSD

rc.d/ntpd: Explain why can_non_root() fails
AbandonedPublic

Authored by cy on Mar 11 2025, 5:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 1:19 AM
Unknown Object (File)
Fri, Nov 21, 6:17 AM
Unknown Object (File)
Fri, Oct 31, 12:44 AM
Unknown Object (File)
Thu, Oct 30, 9:24 AM
Unknown Object (File)
Thu, Oct 30, 9:24 AM
Unknown Object (File)
Thu, Oct 30, 12:48 AM
Unknown Object (File)
Oct 29 2025, 3:39 AM
Unknown Object (File)
Sep 30 2025, 1:33 AM
Subscribers
None

Details

Summary

can_non_root() can fail in multiple ways leaving the user to wonder
what happened and why. A user's only recourse is to post an email with
almost no diagnostic information on one of the mailing lists or in the
forums. Let's send some messages to syslog and stderr before bailing so
that the user has some idea why. This way we may be able to better
understand the nature of the problem and fix it.

MFC after: 3 days

Test Plan

Running locally.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

cy requested review of this revision.Mar 11 2025, 5:26 PM
cy created this revision.

The ntpd rc script needs a complete rewrite.