F11 for the X01- shutdown

Daniel Drake dsd at laptop.org
Fri Jul 31 18:15:19 UTC 2009


2009/7/31 James Cameron <quozl at laptop.org>:
> On Fri, Jul 31, 2009 at 05:14:07PM +0545, Daniel Drake wrote:
>> I think I see the problem. I think martin has misinterpreted the theft
>> deterrence protocol.
>
> Per "rpm -qf /usr/sbin/olpc-update-query" one can see that it is from
> package olpc-update-2.19-1.fc11.noarch
>
> Is there an earlier version?
>
> Where can I find the src.rpm and the upstream source?

It's a standard Fedora package.

>> In check_stolen_hash(), please modify strings to be:
>>     strings = ( uuid + ':' + nonce + ':STOLEN' )
>> i.e. remove the first entry, which actually indicates non-stolen.
>>
>> Does that help?
>
> No.

Your diff is correct but I see a 2nd bug too: the return value of
check_stolen_hash is never checked.

handmade diff for you to test:

-    if isxo and 'stolen' in resp_map:
-       check_stolen_hash(resp_map['stolen'], uuid, nonce)
+    if isxo and 'stolen' in resp_map and
check_stolen_hash(resp_map['stolen'], uuid, nonce):
 # this machine has been reported stolen - get rid of

let me know if you need more details...




More information about the Fedora-olpc-list mailing list