1. 30 10月, 2008 1 次提交
  2. 20 10月, 2008 2 次提交
    • P
      x86: sysfs: kill owner field from attribute · 01e8ef11
      Parag Warudkar 提交于
      Tejun's commit 7b595756 made sysfs
      attribute->owner unnecessary.  But the field was left in the structure to
      ease the merge.  It's been over a year since that change and it is now
      time to start killing attribute->owner along with its users - one arch at
      a time!
      
      This patch is attempt #1 to get rid of attribute->owner only for
      CONFIG_X86_64 or CONFIG_X86_32 .  We will deal with other arches later on
      as and when possible - avr32 will be the next since that is something I
      can test.  Compile (make allyesconfig / make allmodconfig / custom config)
      and boot tested.
      
      akpm: the idea is that we put the declaration of sttribute.owner inside
      `#ifndef CONFIG_X86'.  But that proved to be too ambitious for now because
      new usages kept on turning up in subsystem trees.
      
      [akpm: remove the ifdef for now]
      Signed-off-by: NParag Warudkar <parag.lkml@gmail.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      01e8ef11
    • A
      drivers/rtc/: use bcd2bin/bin2bcd · fe20ba70
      Adrian Bunk 提交于
      Change drivers/rtc/ to use the new bcd2bin/bin2bcd functions instead of
      the obsolete BCD_TO_BIN/BIN_TO_BCD/BCD2BIN/BIN2BCD macros.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fe20ba70
  3. 10 9月, 2008 1 次提交
  4. 08 9月, 2008 1 次提交
  5. 04 9月, 2008 3 次提交
  6. 11 4月, 2008 1 次提交
  7. 15 11月, 2007 1 次提交
    • D
      RTCs: handle NVRAM better · a4b1d50e
      David Brownell 提交于
      Several of the RTC drivers are exporting binary "nvram" files in sysfs.  Such
      NVRAM (or on many systems, EEPROM) data is often initialized during system
      manufacture to hold data about identity (serial numbers, Ethernet addresses,
      etc), configuration, calibration, and so forth.
      
      This patch improves integrity and security of those files:
      
        - Correctly initializes the size in one of the two cases where
          that was not yet being done.
      
        - Improves system security/integrity by making this state not
          be world-writable by default.
      
      Letting arbitrary userspace code mangle such state by default is at least Not
      A Good Thing; and it could sometimes be worse, depending on the particular
      data that might be corrupted.  (I disregard the paranoiac "don't let anyone
      read it either" approach.  Anyone storing passwords in such memory doesn't
      really care about security.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Cc: Torsten Ertbjerg Rasmussen <tr@newtec.dk>
      Cc: Mark Zhan <rongkai.zhan@windriver.com>
      Cc: Thomas Hommel <thomas.hommel@gefanuc.com>
      Acked-by: NAlessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a4b1d50e
  8. 06 11月, 2007 1 次提交
  9. 01 8月, 2007 1 次提交
  10. 18 7月, 2007 1 次提交