On Wed, Aug 10, 2011 at 12:38:39PM +0400, Ilya Chernykh wrote:
Hi!
It seems that the polkit policy in Factory is no longer compatible with HAL which is essential for normal use of KDE3. Is it possible to enable a custom policy set in KDE3 repository without forking the polkit-default-priv package?
That is with current Factory policy a KDE3 user can enable say, automatic mounting of removable media with the following command:
sudo polkit-auth --user $USER --grant org.freedesktop.hal.storage.mount-removable
But this command is not suitable for autostart (because requires a root password) and also not suitable for install-time because it requires a username and cannot be used to enable the privilege for all users.
It there another way of doing the same which is suitable for packaging and makes the process automatic?
Locally you can edit /etc/polkit-default-privs.local to add this rule, in the style of If you want to hav it system wide, open a bug and assign it to lnussel@novell.com (or suse.com) or to security-team@suse.de Or if you just want to have it for your package, use a file within /etc/polkit-default-privs.d/ as drop directory. Use something like this line org.freedesktop.hal.storage.mount-removable no:no:yes (the user at the local console has the rights, no others) Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org