Page MenuHomeFreeBSD

rc.subr: add 'settime' to svcj options
ClosedPublic

Authored by ivy on Tue, Apr 15, 6:01 PM.
Tags
None
Referenced Files
F115682305: D49845.id153707.diff
Sun, Apr 27, 1:58 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM
Unknown Object (File)
Sat, Apr 26, 5:17 AM

Details

Summary

<svc>_svcj_options="settime" enables the jail allow.settime privilege,
which allows to set and slew the system clock. this allows NTP daemons
to run in a service jail.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Tue, Apr 15, 6:01 PM

The kernel side (PRIV) of this patch is missing (compared to to the github pull request).
The svcj part is OK.

The kernel side (PRIV) of this patch is missing (compared to to the github pull request).
The svcj part is OK.

because you can't put multiple commits in one Phabricator diff, i submitted the kernel patch as a parent diff: https://reviews.freebsd.org/D49846

ziaee added inline comments.
share/man/man5/rc.conf.5
5013

Is it supposed to be skew?

share/man/man5/rc.conf.5
5013

no, i intended to write 'slew' as this is the common NTP term for slowly adjusting a monotonic clock. but i don't mind changing it to "skew" if this is preferred (i feel like this is less accurate though).

share/man/man5/rc.conf.5
5013

In that case, maybe a Roff comment above this line explaining that for the next person who thinks it's a typo?

add a comment to descibe the word 'slew'.

ivy marked an inline comment as done.Tue, Apr 15, 9:29 PM
share/man/man5/rc.conf.5
5013

Slew means to adjust the phase error slowly over time while maintaining mobotonicity . It's a general time keeping term that NTP uses, but so does PTP and all the time keeping programs.

adding kevans, des (mentors) to review. i am ready to land this but would appreciate approval from (at least) jamie@ and ziaee@ first.

This revision is now accepted and ready to land.Sat, Apr 19, 10:15 AM

No opinion on slew vs skew, the rest looks good.

The slew vs skew was my ignorance about timekeeping. My suggestion to comment that slew is correct so people in the future won't think it's a typo was incorrect. Please excuse my mistake.

  • remove the roff comment (ok ziaee@ on discord)
This revision now requires review to proceed.Sun, Apr 20, 9:44 PM
ivy marked 2 inline comments as done.Sun, Apr 20, 9:46 PM
This revision is now accepted and ready to land.Mon, Apr 21, 12:36 AM
This revision was automatically updated to reflect the committed changes.