From: Torben Hohn Date: Thu, 3 Mar 2011 17:26:14 +0000 (+0100) Subject: posix-clocks: Check write permissions in posix syscalls X-Git-Tag: v2.6.39-rc1~508^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6823d17b157f185be09f4c70181299f9273f0b;p=pandora-kernel.git 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 LKML-Reference: <1299173174-348-4-git-send-email-torbenh@gmx.de> Cc: Richard Cochran Cc: John Stultz Cc: Thomas Gleixner --- Reading git-diff-tree failed