From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 19 May 2005 22:10:02 +0000 Subject: Re: udev and sysfs permissions Message-Id: <1116540602.6138.40.camel@dhcp-188.off.vrfy.org> 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, 2005-05-19 at 18:02 -0400, Jon Smirl wrote: > I'm manually chmod'ing a sysfs variable with different permissions. > About half an hour later (no sure of exact time) the variable is reset > back to the permissions the driver created it with. Is udevd doing > this? Can udev control sysfs permissions (I though it only controlled > the device permissions). If not udev, who is changing the permissions > back? The kernel, I think. udev does nothing like that. I don't think that changing permission of an attribute from userspace will work. You may need to use: sysfs_chmod_file() from inside the kernel to change the permissions in the sysfs attribute if that is applicable for your use. Kay ------------------------------------------------------- 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