privops: add support for privileged ntp_adjtime()

This commit is contained in:
Miroslav Lichvar
2015-12-09 18:11:09 +01:00
parent d5bc4e92e6
commit 3cb0351aff
2 changed files with 73 additions and 2 deletions

View File

@@ -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