mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 07:35:07 -05:00
privops: add support for privileged ntp_adjtime()
This commit is contained in:
@@ -34,6 +34,12 @@ int PRV_AdjustTime(const struct timeval *delta, struct timeval *olddelta);
|
||||
#define PRV_AdjustTime adjtime
|
||||
#endif
|
||||
|
||||
#ifdef PRIVOPS_ADJUSTTIMEX
|
||||
int PRV_AdjustTimex(struct timex *txc);
|
||||
#else
|
||||
#define PRV_AdjustTimex ntp_adjtime
|
||||
#endif
|
||||
|
||||
#ifdef PRIVOPS_SETTIME
|
||||
int PRV_SetTime(const struct timeval *tp, const struct timezone *tzp);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user