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)
Tue, Sep 30, 1:33 AM
Unknown Object (File)
Thu, Sep 25, 11:08 AM
Unknown Object (File)
Wed, Sep 17, 3:36 PM
Unknown Object (File)
Aug 19 2025, 7:39 PM
Unknown Object (File)
Aug 17 2025, 2:15 PM
Unknown Object (File)
Aug 5 2025, 5:52 PM
Unknown Object (File)
Jul 5 2025, 9:23 AM
Unknown Object (File)
Jun 28 2025, 4:35 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.