aptdaemon should have functions for editing apt config

Bug #625397 reported by Andrew
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Committed
Wishlist
Sebastian Heinlein

Bug Description

aptdaemon should have functions so that the apt config can be edited. An example of where this would be needed in in software-properties, when a user can edit the update frequency - this is stored as a config option in apt's config.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Perhaps using the properties of interface of org.debian.apt seems to be a good idea. But should we map the apt config parameters to human readable names or allow full access all settings?

Changed in aptdaemon:
assignee: nobody → Sebastian Heinlein (glatzor)
milestone: none → 0.4.0
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Andrew (and471) wrote :

I would suggest access to all settings so that a developer can easily switch from using apt_pkg.Config to using aptdaemon for this purpose in a quick and easy way.

Revision history for this message
Olof Kindgren (flamingolof) wrote :

I'm thinking that it could be a security risk to expose all settings directly. It's also difficult to give the action a meaningful name for the policykit dialog. On the other hand, it's not very user-friendly to have thousands of different actions that needs to be confirmed one by one, but I see that as the lesser of two evils.

I'm thinking of porting software-properties to use aptdaemon, as it is one of the few remaining apt related ubuntu programs.
Therefore I would like to see functions implemented at least. If it's of any interest, I can compile a list of those functions

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Nice to hear from you again Olof, have you ever chatted with Andrew? He would also wants to make use of aptdaemon in software-properties. So it could be a good place for cooperation.

I would suggest to only add one new privilege: change-apt-config. (we removed and merged a lot of privileges recently and I would like to avoid too much fragmentation). In the past we often used PolicyKit dialogs as confirmation dialogs but this is wrong.

The message to the user could be "To change package manager settings, you have to authenticate". The granted privilege would be kept until the end of the software-properties session. In the worst case software-properties would ask for two privilges: change-respositories and change-apt-config. (update-cache doesn't require any authentication anymore).

What do you think?

Revision history for this message
Andrew (and471) wrote :

Hi Olof I must speak to you in the future :)

@Sebastien
Sounds good, however (and this should be on a different bug report), I am conscious of the fact we don't want too many separate privileges as otherwise software-properties could be asking for a password 5 or 6 times.

Changed in aptdaemon:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.