Bug#693071: gnome-control-center/exp: cannot set hostname under systemd

Michael Biebl biebl at debian.org
Mon Nov 12 18:20:07 UTC 2012


On 12.11.2012 18:46, Simon McVittie wrote:
> Package: gnome-control-center
> Version: 1:3.6.2-1
> Severity: normal
> 
> When running under systemd, the machine's hostname can be seen on the
> Details tab. However, it cannot be changed.
> According to https://bugzilla.gnome.org/show_bug.cgi?id=679281 the hostname
> is only editable if policykit reports that the set-hostname PK action
> is allowed without prompting.
> 
> The solution chosen upstream was to install
> panels/common/gnome-control-center.rules, which allows setting the hostname
> without prompting if the user is in the wheel group. (Our equivalent would
> be the sudo group.)
> 
> This comes up as this warning from list-missing during build:
> 
> -./usr/share/polkit-1/rules.d/gnome-control-center.rules
> 
> Possible solutions include:
> 
> * do what upstream did, patching the file to require sudo instead of wheel
> * add some way to issue a PK prompt, and deliberately omit the .rules file
> * accept that the hostname cannot be changed in this way, and deliberately
>   omit the .rules file
> 
> Ideally, "deliberately omit the .rules file" means "delete it in debian/rules"
> (which shuts up the warning, and acts as documentation that it is deliberate).
> 
> I haven't installed panels/common/gnome-control-center.rules, and haven't
> added a makefile rule to delete the file either, because I didn't
> want to make this policy decision without consulting the rest of the team.
> 

Please be aware that .rules files are for newer versions of polkit
(which are javascript based [1]). The version in wheezy/sid uses .pkla
files.
Thus simply installing the file will not help unless we upgrade polkit
too, but.
That file could be translated to a corresponding .pkla file, though.



[1] http://davidz25.blogspot.de/2012/06/authorization-rules-in-polkit.html

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20121112/0057758a/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list