Re: [PATCH 4/7] fuse: add POSIX file locking support
From: Miklos Szeredi
Date: Mon Jun 19 2006 - 04:37:03 EST
> How about; on fuse startup, pick some semirandom number, store it
> somewhere, then do an XOR of the pointer with the saved value to
> scramble it, when you need to use it, simply XOR it again with the
> stored value... Not especially strong, but better than nothing and
> better than just adding a constant that people can find out from the
> source
I think Andrew was suggesting a random key for the ADD function.
> (and the scramble value would be differene each time fuse loads, so
> at a minimum a different scramble key every boot) - also, XOR is a
> quite fast operation so overhead should be low.
I think XOR might be even weaker than ADD, because from gessing the
difference between two values (easy) you might be able to guess the
bits of the key.
I'm actually looking for something stronger than XOR or ADD, but it's
all a bit academical I think, because even if userspace knows these
kernel pointers it can't really use them for any malicious purpose.
Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/