#817942 usbmuxd: /var/lib/lockdown/SystemConfiguration.plist not removed on purge

Package:
usbmuxd
Source:
usbmuxd
Description:
USB multiplexor daemon for iPhone and iPod Touch devices
Submitter:
Alexandre Detiste
Date:
2017-11-30 21:30:08 UTC
Severity:
normal
#817942#5
Date:
2016-03-11 20:04:38 UTC
From:
To:

This is not a duplicate of #562817.


The directory /var/lib/lockdown can be created
by usbmuxd with a single file called "SystemConfiguration.plist".

Code is here, a bit obfuscated by all the defines:
https://sources.debian.net/src/usbmuxd/1.1.0-2/src/conf.c

This happened when someone used my laptop's
usb port to charge up his iPhone.


This file is never removed on purge.

So just please "rm -rf /var/lib/lockdown" in postrm.

Greets,

Alexandre Detiste

#817942#10
Date:
2017-11-30 21:26:52 UTC
From:
To:
Hi,

I'm considering NMU-ing usbmuxd to update it to a more recent git snapshot.

I'm not really sure we want to remove completely the lockdown directory, even
at purge time. That directory will contains pairing records to various
idevices (usually managed by idevicepair). If there are records there, I don't
really think we want to remove them.

Maybe it'd be enough to rm /var/lib/lockdown/SystemConfiguration.plist ; rmdir
/var/lib/lockdown || true

That way, if usbmuxd was never used to actually pair an iphone/ipad, the
cleanup would be done, but otherwise no pairing record would be lost (that
beeing said, if the package is reinstalled later, the
SystemConfiguration.plist will be recreated, maybe with a different ID so I'm
unsure the pairing records will still be valid).

Regards,