From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 20 May 2005 04:33:56 +0000 Subject: Re: udev and sysfs permissions Message-Id: <20050520043356.GA9929@kroah.com> List-Id: References: <9e47339105051915025188e535@mail.gmail.com> In-Reply-To: <9e47339105051915025188e535@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, May 19, 2005 at 06:02:16PM -0400, Jon Smirl wrote: > I'm manually chmod'ing a sysfs variable with different permissions. Ouch, don't do that :( Hm, does the kernel let you do that? It shouldn't. You are doing this as root, right? > About half an hour later (no sure of exact time) the variable is reset > back to the permissions the driver created it with. Heh, nice, I like it. > Is udevd doing this? Nope, the kernel is. You must have provided enough memory pressure to push the file out of the dcache, and then when you went to look at it again, it was created on the fly from scratch again, with the proper permissions (as the kernel thinks the files have.) Nice to see it's all working properly :) > Can udev control sysfs permissions (I though it only controlled the > device permissions). No, only the kernel can control sysfs permissions. thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel