Skip to contentSkip to conversation

hsf modem drivers lying about their license

DISCUSSION Jon DeVree 2 participants 2 messages Apr 26, 2004

lore
Share & tools
lore

Jon DeVree

author
#0 lore raw

Someone needs to take a look at the MODULE_LICENSE string reported by the HSF modem drivers made by LinuxAnt.

http://www.linuxant.com/drivers/hsf/full/downloads.php

They creatively inserted a \0 character in it. MODULE_LICENSE("GPL\0for files in the \"GPL\" directory; for others, only LICENSE file applies");

Runnning modinfo -F license on the compiled driver gives:
GPL because of their creative null character. The actual license for most of the files is NOT GPL.

Signature · 3 lines
Jon
http://tesla.resnet.mtu.edu
The only meaning in life is the meaning you create for it.
#1 lore raw
Quoted 5 lines · Jon DeVree

Someone needs to take a look at the MODULE_LICENSE string reported by the HSF modem drivers made by LinuxAnt.

http://www.linuxant.com/drivers/hsf/full/downloads.php

Quoted 7 lines

They creatively inserted a \0 character in it. MODULE_LICENSE("GPL\0for files in the \"GPL\" directory; for others, only LICENSE file applies");

Runnning modinfo -F license on the compiled driver gives:
GPL because of their creative null character. The actual license for most of the files is NOT GPL.

Ewww...that's evil.

Maybe we need to store the size of the license string for modinfo, so it doesn't stop at the first null?

Chris