Get rid of libiphone-initconf
-
Andreas Nordal
only root can mount
Yes, mostly. Exceptions can be created, but of course the documentation should not assume that.
According to the documentation, adding oneself to the "fuse" group is enough. On OpenSUSE 11.1, creating the fuse group and adding myself to it certainly didn't work.
If the output of libiphone-initconf were stored in /usr/local/share/libiphone, we would not have this problem.
-
Nico Caprioli
wes, but it is stored in YOUR home directory, so you have to run libiphone-initconf as root
-
Martin S.
One can mount using fusermount just fine without being root.
The real problem is rather that libiphone has to check for the generated keys correctly. First in the user's home directory, then system-wide.
Should be a rather trivial patch to fix this.
-
Matt Colyer
- Tag set to libiphone
A patch along the lines of what Martin has outlined would be accepted.
-
Jonathan Beck
- Milestone set to 1.0 Release
- Assigned user set to Jonathan Beck
- State changed from new to open
-
Paul Sladen
- Tag changed from libiphone to automount, ifuse, libiphone
IMHO, this patch/proposal should be double-checked carefully.
Keys do not need to exist for 'usbmuxd' (which is started as root, but only to create '/var/run/usbmuxd'). So it is possible to eg. SSH to the iPhone without keys.
Keys are only needed to communicate at the lockdown level... which ideally is run per-user.
eg. a gvfs or kioslave based AFC mounter has no need to do any actual "mounting" and can merely provide a userspace VFS translation.
-
Matt Colyer
A fair point Paul, once the usbmux stuff is implemented.
I am not feeling a burning desire to work on this so I guess we could wait until that's implemented.
-
Jonathan Beck
- Tag changed from automount, ifuse, libiphone to libiphone, libplist, merge
- Assigned user changed from Jonathan Beck to Matt Colyer
- Title changed from libiphone-initconf need to be executed by root to Get rid of libiphone-initconf
title was : libiphone-initconf need to be executed by root
I finally had time to find a proper solution. The idea is to generate root and host keys on the fly. This is made possible by using less secure random number generator in gnutls internals (libgcrypt).
The patch implementing this is on top of my contact_sync branch. It also require libplist 0.10 since there was a bug preventing pairing.
When this gets included, the libiphone-initconf tool won't exists anymore, and we get a ~5 sec overhead on the first connection (which imo is acceptable).
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.