On Tue, Nov 15, 2011 at 06:41:53PM +0000, Nuno Santos wrote: > Generally we restrict access to sysfs attributes to root since they > control behavior for all users, not only one why is changin sysfs > attribute. > > > Hummm... that leads me to a question. How can I make use of such > attributes inside an application without having root access? Imagine > that I open the control panel of the device in a user account, the > contol panel itself will not have access to the attributes and it will > not work. How do I overcome this problem? Applications could register with ConsoleKit to elevate their privileges if needed if they are running in a context of user logged onto local console as opposed to someone logging in removely. > > Imagine that my device is a soundcard and it has a beautifull control > panel to control non general parameters. What would be the interface > used by the control panel to access the kernel driver and modify the > soundcard parameters? > Beautful control panel does not normally even talk to sound card directly but rather plugs into desktop environment infrastructure which plugs into sound server inforastructure which in turn knows how to talk to the hardware. Take a look at the sound mixer applet. As you can see it actually exports only standard parameters and is pretty bland in this regard (and this is a good thing - it supposed to work uniformly on all hardware). The best way if advanved parameters have sensible defaults and need not to be touched at all. I guess here you see the difference between Linux and Windows views because we actually do not want vendor-specific applets/tray icons/utilities/etc but rather unified interface working for all hardware in a given class. Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html