F11 for the X01- shutdown

Daniel Drake dsd at laptop.org
Fri Jul 31 11:29:07 UTC 2009


2009/7/31 James Cameron <quozl at laptop.org>:
> On Fri, Jul 31, 2009 at 02:26:13PM +0545, Daniel Drake wrote:
>> See /usr/bin/olpc-update-query, the code near:
>>         # this machine has been reported stolen - get rid of
>>         # any leases and poweroff
>
> I think you're right.  Here's why:
>
> [root at localhost ~]# ls -l /security/
> total 0
> -rw-r--r-- 1 root root 0 Jul 31 06:02 update-attempt
> [root at localhost ~]# /usr/sbin/olpc-update-query
> Error setting OHM inhibit: org.freedesktop.DBus.Error.ServiceUnknown:
> The name org.freedesktop.ohm was not provided by any .service files
>
> Broadcast message from root at localhost.localdomain
>        (/dev/pts/0) at 6:23 ...
>
> The system is going down for halt NOW!
> [root at localhost ~]#
>
>> I suggest removing the call to halt and adding some logging instead,
>> to confirm this theory. If you could also log the value of
>> str(resp_map) and show us this then it will help us diagnose the
>> issue.
>
> {'nonce': '6cb0c08d464152816a040ad071d4f46e', 'stolen':
> '7df745eed2112c9fd3c356c35dda7cbdffa3c496d08e58641550fc0f651a12f4',
> 'time': '20090731T102917Z'}
>
> {'nonce': '58aaf6558ab743a335bf5d5859a64a69', 'stolen':
> '8038107e352154e6a0b3319cca4a20d884b095ce85268b9fc0e54eacde487cca',
> 'time': '20090731T103027Z'}

I think I see the problem. I think martin has misinterpreted the theft
deterrence protocol.

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?

Thanks,
Daniel




More information about the Fedora-olpc-list mailing list