diff options
| author | Torben Hohn <[email protected]> | 2011-03-03 17:26:14 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2011-03-12 20:27:07 +0000 |
| commit | 6e6823d17b157f185be09f4c70181299f9273f0b (patch) | |
| tree | 8a9009e2d54955c1a9c5a033493c8668915d09f8 /net/unix/af_unix.c | |
| parent | hrtimer: Remove empty hrtimer_init_hres_timer() (diff) | |
| download | kernel-6e6823d17b157f185be09f4c70181299f9273f0b.tar.gz kernel-6e6823d17b157f185be09f4c70181299f9273f0b.zip | |
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 <[email protected]>
LKML-Reference: <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
