Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946172AbXBCBSV (ORCPT ); Fri, 2 Feb 2007 20:18:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946182AbXBCBSV (ORCPT ); Fri, 2 Feb 2007 20:18:21 -0500 Received: from rgminet01.oracle.com ([148.87.113.118]:24824 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946172AbXBCBSU (ORCPT ); Fri, 2 Feb 2007 20:18:20 -0500 Date: Fri, 2 Feb 2007 17:12:32 -0800 From: Randy Dunlap To: Jan Engelhardt Cc: Paul Rolland , "'Linux Kernel Mailing List'" , "'Andrew Morton'" , "'Jon Masters'" , "'Alexey Dobriyan'" Subject: Re: [PATCH] Ban module license tag string termination trick Message-Id: <20070202171232.261c4fad.randy.dunlap@oracle.com> In-Reply-To: References: <011601c746d9$dc5453b0$4b00a8c0@donald> <20070202085351.3215815f.randy.dunlap@oracle.com> <20070202094900.d8931dbe.randy.dunlap@oracle.com> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.3.0 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 30 On Fri, 2 Feb 2007 20:06:42 +0100 (MET) Jan Engelhardt wrote: > > On Feb 2 2007 09:49, Randy Dunlap wrote: > >On Fri, 2 Feb 2007 18:41:02 +0100 (MET) Jan Engelhardt wrote: > >> On Feb 2 2007 08:53, Randy Dunlap wrote: > >> > > >> >if (MODULE_LICENSE_contains_null(license)) > >> > printk(KERN_WARNING "this module's license is suspicious\n"); > >> > >> Try to code that macro. > > > >It's not a macro afaict. > > Whatever, I just want to see how you are going to implement > MODULE_LICENSE_contains_null. I was busy on other things this morning (my time). Now I have looked and I see what you mean. ;) I think it's possible, but it requires digging/learning about Elf headers. --- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/