1. 01 11月, 2011 1 次提交
  2. 18 4月, 2011 1 次提交
  3. 13 3月, 2011 1 次提交
    • T
      posix-clocks: Check write permissions in posix syscalls · 6e6823d1
      Torben Hohn 提交于
      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: NTorben 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>
      6e6823d1
  4. 02 2月, 2011 1 次提交
    • R
      posix clocks: Introduce dynamic clocks · 0606f422
      Richard Cochran 提交于
      This patch adds support for adding and removing posix clocks. The
      clock lifetime cycle is patterned after usb devices. Each clock is
      represented by a standard character device. In addition, the driver
      may optionally implement custom character device operations.
      
      The posix clock and timer system calls listed below now work with
      dynamic posix clocks, as well as the traditional static clocks.
      The following system calls are affected:
      
         - clock_adjtime (brand new syscall)
         - clock_gettime
         - clock_getres
         - clock_settime
         - timer_create
         - timer_delete
         - timer_gettime
         - timer_settime
      
      [ tglx: Adapted to the posix-timer cleanup. Moved clock_posix_dynamic
        	to posix-clock.c and made all referenced functions static ]
      Signed-off-by: NRichard Cochran <richard.cochran@omicron.at>
      Acked-by: NJohn Stultz <johnstul@us.ibm.com>
      LKML-Reference: <20110201134420.164172635@linutronix.de>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      0606f422