F11 for the X01- shutdown
James Cameron
quozl at laptop.org
Fri Jul 31 11:56:33 UTC 2009
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?
> 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.
Just to confirm the change you requested, here's the diff ...
# diff -u /usr/sbin/olpc-update-query.orig /usr/sbin/olpc-update-query
--- /usr/sbin/olpc-update-query.orig 2009-07-31 07:51:27.000000000 -0400
+++ /usr/sbin/olpc-update-query 2009-07-31 07:51:51.000000000 -0400
@@ -125,8 +125,7 @@
def check_stolen_hash(hash, nonce, uuid):
- strings = ( uuid + ':' + nonce,
- uuid + ':' + nonce + ':STOLEN' )
+ strings = ( uuid + ':' + nonce + ':STOLEN' )
for msg in strings:
if hash == hashlib.sha256(msg).hexdigest():
return True
#
And the output still shows it would have halted and str(resp_map) shows
{'nonce': '55462871e50934b75f96ff311776adc5', 'stolen':
'19e8b87862c9d321f5aeec5de8d405b40de4b0a7f06c2dd6ab4a170aba85716e',
'time': '20090731T115207Z'}
--
James Cameron
http://quozl.linux.org.au/
More information about the Fedora-olpc-list
mailing list