sysfs patches in -mm create bad permissions

From: Adrian Bridgett (adrian_at_smop.co.uk)
Date: 08/09/04

  • Next message: Andrew Morton: "Re: -mm swsusp: fix highmem handling"
    Date:	Mon, 9 Aug 2004 22:45:33 +0100
    To: linux-kernel@vger.kernel.org
    
    

    Thanks to GregKH for looking at this too.

    Odd one this. It seems like whoever looks at some files in /sys first, owns
    them. e.g I just created a new user fred, rebooted. Then "find /sys -user
    fred" shows loads of files. Permissions are 644 and so the owner is
    important.

    In particular, "echo -n disk > /sys/power/state" will cause the machine to
    suspend to disk (hence the security tag).

    Found when I suddenly thought, "hang on, shouldn't I be root" :-)

    Results so far:

    2.6.8-rc2-mm1 - bad
    2.6.8-rc2 - okay
    2.6.8-rc3 - okay
    2.6.8-rc3-mm1 - bad

    .config file available on request. compiled with gcc 3.3.4 (debian 1:3.3.4-6)

    Adrian

    -- 
    Email: adrian@smop.co.uk
    Windows NT - Unix in beta-testing. GPG/PGP keys available on public key servers
    Debian GNU/Linux  -*-  By professionals for professionals  -*-  www.debian.org
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Andrew Morton: "Re: -mm swsusp: fix highmem handling"

    Relevant Pages

    • Re: [PATCH] mm lock ordering summary
      ... On Fri, 25 Jun 2004, Andrew Morton wrote: ... It's alleging that you'll be okay if you write code with tree_lock ... Look at the summary and if what I've written fits ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: swsusp bigdiff [was Re: [PATCH] Software Suspend split to two stage V2.]
      ... >> BTW here's my curent bigdiff. ... Okay, I tried wihtout PREEMPT and HIGHMEM, and it seemed to work ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Realtime Preemption, 2.6.12, Beginners Guide?
      ... > the same computer on the same network, ... Okay, I've managed to figure out a reproducible test for this problem. ... for me to capture any messages prior to this spam, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] deinline large functions in sock.h
      ... Okay, so is it pro- or contra- argument for inlining? ... They deinline functions which are larger ... >> First patch simply does such a move. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Patch to add support for SGIs IOC4 chipset
      ... > Okay, ... I found that I was able to get rid of all of them. ... Attached is the latest patch, which also includes your patch sent previously. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)