diff options
author | Richard Cochran <richardcochran@gmail.com> | 2011-04-04 15:31:23 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-04-04 15:31:23 (GMT) |
commit | 4352d9d44b935e4d000be6ec89ddb55c2bf35f24 (patch) | |
tree | 26b9d37f5a41b4c01d800a444ad230eafb48e47a /drivers/ide/icside.c | |
parent | b3b896c73b4b04b506816a09994192e3a54f0fef (diff) | |
download | linux-fsl-qoriq-4352d9d44b935e4d000be6ec89ddb55c2bf35f24.tar.xz |
ntp: fix non privileged system time shifting
The ADJ_SETOFFSET bit added in commit 094aa188 ("ntp: Add ADJ_SETOFFSET
mode bit") also introduced a way for any user to change the system time.
Sneaky or buggy calls to adjtimex() could set
ADJ_OFFSET_SS_READ | ADJ_SETOFFSET
which would result in a successful call to timekeeping_inject_offset().
This patch fixes the issue by adding the capability check.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/ide/icside.c')
0 files changed, 0 insertions, 0 deletions