From: Frank Steiner Date: Tue, 26 Oct 2004 13:49:12 +0000 Subject: Re: permissions: udev vs. pam_devperm.so Message-Id: <417E55D8.7030406@bio.ifi.lmu.de> List-Id: References: <417DF0A8.2060108@bio.ifi.lmu.de> In-Reply-To: <417DF0A8.2060108@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote > I don't think that this will work, as there should be a remove event > before you get a new add event and the node will be deleted and recreated > without anything to preserve. You may check the inode number, it should > have changed. Ok, I see... So, do you think it was possible to make sth. similar to pam_devperm? E.g., my /etc/logindevperms has a line :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3 When a user logs in with kdm (/etc/pam.d/kdm defines using pam_devperm.so), /dev/dvd (i.e., the device this link points to, here: /dev/hdc) will be set to 600 and the user logging in will be the owner. Makes sense for a certain set of devices. Maybe udev could use pam_devperm in a similar way? Or allow a special keyword like "console" as owner in the permissions file, setting the user who owns the console as owner of the device (and the default if no such user currently exists)? This way, devices added after the user has logged in, could be assigned to the locally logged-in user, too. cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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