On Thu, May 23, 2019 at 5:29 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote: > > Based on 1 normalized pattern(s): > > this program is free software you can redistribute it and or modify > it under the terms of the gnu general public license as published by > the free software foundation either version 2 of the license or at > your option any later version due to this file being licensed under > the gpl there is controversy over whether this permits you to write > a module that includes this file without placing your module under > the gpl please consult a lawyer for advice before doing this > > extracted by the scancode license scanner the SPDX license identifier > > GPL-2.0-or-later > > has been chosen to replace the boilerplate/reference in 2 file(s). Why should > due to this file being licensed under > the gpl there is controversy over whether this permits you to write > a module that includes this file without placing your module under > the gpl please consult a lawyer for advice before doing this be treated as "boilerplate" that should be deleted? It is a non-boilerplate statement about legal interpretation that goes beyond the mere license notice. Seems to merit discussion anyway. Richard > Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > --- > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-spdx.git/commit/?h=batch5&id=994fb82851b0 > --- > include/linux/lsm_hooks.h | 12 +----------- > include/linux/security.h | 12 +----------- > 2 files changed, 2 insertions(+), 22 deletions(-) > > --- a/include/linux/lsm_hooks.h > +++ b/include/linux/lsm_hooks.h > @@ -1,3 +1,4 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > /* > * Linux Security Module interfaces > * > @@ -9,17 +10,6 @@ > * Copyright (C) 2015 Intel Corporation. > * Copyright (C) 2015 Casey Schaufler <casey@xxxxxxxxxxxxxxxx> > * Copyright (C) 2016 Mellanox Techonologies > - * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License as published by > - * the Free Software Foundation; either version 2 of the License, or > - * (at your option) any later version. > - * > - * Due to this file being licensed under the GPL there is controversy over > - * whether this permits you to write a module that #includes this file > - * without placing your module under the GPL. Please consult a lawyer for > - * advice before doing this. > - * > */ > > #ifndef __LINUX_LSM_HOOKS_H > --- a/include/linux/security.h > +++ b/include/linux/security.h > @@ -1,3 +1,4 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > /* > * Linux Security plug > * > @@ -7,17 +8,6 @@ > * Copyright (C) 2001 James Morris <jmorris@xxxxxxxxxxxxxxxx> > * Copyright (C) 2001 Silicon Graphics, Inc. (Trust Technology Group) > * Copyright (C) 2016 Mellanox Techonologies > - * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License as published by > - * the Free Software Foundation; either version 2 of the License, or > - * (at your option) any later version. > - * > - * Due to this file being licensed under the GPL there is controversy over > - * whether this permits you to write a module that #includes this file > - * without placing your module under the GPL. Please consult a lawyer for > - * advice before doing this. > - * > */ > > #ifndef __LINUX_SECURITY_H > > -- Richard Fontana Senior Commercial Counsel Red Hat, Inc.