Richard Cochran
4352d9d44b
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>
2011-04-04 08:31:23 -07:00
..
clockevents.c
time: Make do_timer() and xtime_lock local to kernel/time/
2011-01-31 19:26:50 +01:00
clocksource.c
jiffies.c
time: Make do_timer() and xtime_lock local to kernel/time/
2011-01-31 19:26:50 +01:00
Kconfig
Makefile
posix clocks: Introduce dynamic clocks
2011-02-02 15:28:20 +01:00
ntp.c
ntp: fix non privileged system time shifting
2011-04-04 08:31:23 -07:00
posix-clock.c
posix-clocks: Check write permissions in posix syscalls
2011-03-12 21:27:07 +01:00
tick-broadcast.c
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2011-03-15 18:53:35 -07:00
tick-common.c
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2011-03-15 18:53:35 -07:00
tick-internal.h
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2011-03-15 18:53:35 -07:00
tick-oneshot.c
time: Make do_timer() and xtime_lock local to kernel/time/
2011-01-31 19:26:50 +01:00
tick-sched.c
time: Make do_timer() and xtime_lock local to kernel/time/
2011-01-31 19:26:50 +01:00
timecompare.c
timeconv.c
timekeeping.c
timekeeping: Use syscore_ops instead of sysdev class and sysdev
2011-03-23 22:16:04 +01:00
timer_list.c
timer debug: Hide kernel addresses via %pK in /proc/timer_list
2011-02-12 14:11:56 +01:00
timer_stats.c