diff options
author | Torben Hohn <torbenh@gmx.de> | 2011-03-03 20:26:14 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-12 23:27:07 +0300 |
commit | 6e6823d17b157f185be09f4c70181299f9273f0b (patch) | |
tree | 8a9009e2d54955c1a9c5a033493c8668915d09f8 /arch/alpha/kernel/sys_rawhide.c | |
parent | a9e7acfff0a279792918b7b0de74106e576e9988 (diff) | |
download | linux-6e6823d17b157f185be09f4c70181299f9273f0b.tar.xz |
posix-clocks: Check write permissions in posix syscalls
pc_clock_settime() and pc_clock_adjtime() do not check whether the fd
was opened in write mode, so a clock can be set with a read only fd.
[ tglx: We deliberately do not return -EPERM as we want this to be
distingushable from the capability based permission check ]
Signed-off-by: Torben Hohn <torbenh@gmx.de>
LKML-Reference: <1299173174-348-4-git-send-email-torbenh@gmx.de>
Cc: Richard Cochran <richard.cochran@omicron.at>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/alpha/kernel/sys_rawhide.c')
0 files changed, 0 insertions, 0 deletions