Page MenuHomeFreeBSD

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

Authored by ivy on Tue, Apr 15, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 3:07 AM
Unknown Object (File)
Thu, Apr 17, 2:44 AM
Unknown Object (File)
Thu, Apr 17, 2:09 AM
Unknown Object (File)
Wed, Apr 16, 4:35 AM
Unknown Object (File)
Tue, Apr 15, 9:24 PM

Details

Reviewers
jamie
cy
kevans
des
ziaee
Group Reviewers
Jails
manpages
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63530
Build 60414: arc lint + arc unit

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.