Fix up a bunch of our license statements and add SPDX most places

The license statements in our source files were getting to be a giant
mess, and mostly they all just say the same thing.  I've switched most
of it to SPDX labels, but left copyright statements in place (where they
were not obviously incorrect copy-paste jobs that I did...).

If there's some change here you don't think is valid, let me know and
we can fix it up together.

Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
Peter Jones 2020-12-11 15:54:55 -05:00 committed by Javier Martinez Canillas
parent bc894771f5
commit aedb8470bd
41 changed files with 116 additions and 277 deletions

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#include <efi.h> #include <efi.h>
#include <efilib.h> #include <efilib.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#include <efi.h> #include <efi.h>
#include <efilib.h> #include <efilib.h>
#include <Library/BaseCryptLib.h> #include <Library/BaseCryptLib.h>

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* Walk a list of input files, printing the name and buildid of any file * Walk a list of input files, printing the name and buildid of any file
* that has one. * that has one.

1
cert.S
View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#if defined(VENDOR_DB_FILE) && defined(VENDOR_CERT_FILE) #if defined(VENDOR_DB_FILE) && defined(VENDOR_CERT_FILE)
# error both VENDOR_DB_FILE and VENDOR_CERT_FILE have been configured # error both VENDOR_DB_FILE and VENDOR_CERT_FILE have been configured

View File

@ -1,7 +1,9 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* errlog.c * errlog.c
* Copyright 2017 Peter Jones <pjones@redhat.com> * Copyright Peter Jones <pjones@redhat.com>
*/ */
#include "shim.h" #include "shim.h"
#include "hexdump.h" #include "hexdump.h"

View File

@ -1,10 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* Copyright 2012-2013 Red Hat, Inc. * Copyright Red Hat, Inc.
* All rights reserved. * Copyright Peter Jones <pjones@redhat.com>
*
* See "COPYING" for license terms.
*
* Author(s): Peter Jones <pjones@redhat.com>
*/ */
#include <efi.h> #include <efi.h>

View File

@ -1,31 +1,8 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* Copyright 2015 SUSE LINUX GmbH <glin@suse.com> * Copyright 2015 SUSE LINUX GmbH <glin@suse.com>
* *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Significant portions of this code are derived from Tianocore * Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel * (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
* Corporation. * Corporation.

View File

@ -1,7 +1,4 @@
/* // SPDX-License-Identifier: BSD-2-Clause-Patent
* asm.h
* Copyright 2018 Peter Jones <pjones@redhat.com>
*/
#ifndef SHIM_ASM_H_ #ifndef SHIM_ASM_H_
#define SHIM_ASM_H_ #define SHIM_ASM_H_

View File

@ -1,7 +1,4 @@
/* // SPDX-License-Identifier: BSD-2-Clause-Patent
* compiler.h
* Copyright 2019 Peter Jones <pjones@redhat.com>
*/
#ifndef COMPILER_H_ #ifndef COMPILER_H_
#define COMPILER_H_ #define COMPILER_H_

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_CONFIGTABLE_H #ifndef SHIM_CONFIGTABLE_H
#define SHIM_CONFIGTABLE_H #define SHIM_CONFIGTABLE_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_CONSOLE_H #ifndef SHIM_CONSOLE_H
#define SHIM_CONSOLE_H #define SHIM_CONSOLE_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_EFIAUTHENTICATED_H #ifndef SHIM_EFIAUTHENTICATED_H
#define SHIM_EFIAUTHENTICATED_H #define SHIM_EFIAUTHENTICATED_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_ERRORS_H #ifndef SHIM_ERRORS_H
#define SHIM_ERRORS_H #define SHIM_ERRORS_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_LIB_EXECUTE_H #ifndef SHIM_LIB_EXECUTE_H
#define SHIM_LIB_EXECUTE_H #define SHIM_LIB_EXECUTE_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_GUID_H #ifndef SHIM_GUID_H
#define SHIM_GUID_H #define SHIM_GUID_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef STATIC_HEXDUMP_H #ifndef STATIC_HEXDUMP_H
#define STATIC_HEXDUMP_H #define STATIC_HEXDUMP_H

View File

@ -1,23 +1,14 @@
/** @file // SPDX-License-Identifier: BSD-2-Clause-Patent
This file defines the EFI HTTP Protocol interface. It is split into
the following two main sections:
HTTP Service Binding Protocol (HTTPSB)
HTTP Protocol (HTTP)
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> /*
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR> * This file defines the EFI HTTP Protocol interface. It is split into
This program and the accompanying materials * the following two main sections:
are licensed and made available under the terms and conditions of the BSD License * HTTP Service Binding Protocol (HTTPSB)
which accompanies this distribution. The full text of the license may be found at * HTTP Protocol (HTTP)
http://opensource.org/licenses/bsd-license.php *
* Copyright (c) 2016, Intel Corporation. All rights reserved.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, * Copyright 2015 Hewlett Packard Enterprise Development LP
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. */
@par Revision Reference:
This Protocol is introduced in UEFI Specification 2.5
**/
#ifndef SHIM_HTTP_H #ifndef SHIM_HTTP_H
#define SHIM_HTTP_H #define SHIM_HTTP_H

View File

@ -1,31 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* Copyright 2015 SUSE LINUX GmbH <glin@suse.com> * Copyright 2015 SUSE LINUX GmbH <glin@suse.com>
* *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Significant portions of this code are derived from Tianocore * Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel * (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
* Corporation. * Corporation.

View File

@ -1,20 +1,11 @@
/** @file // SPDX-License-Identifier: BSD-2-Clause-Patent
This file provides a definition of the EFI IPv4 Configuration II
Protocol.
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR> /*
This program and the accompanying materials * This file provides a definition of the EFI IPv4 Configuration II
are licensed and made available under the terms and conditions of the BSD License * Protocol.
which accompanies this distribution. The full text of the license may be found at<BR> *
http://opensource.org/licenses/bsd-license.php * Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
*/
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@par Revision Reference:
This Protocol is introduced in UEFI Specification 2.5
**/
#ifndef SHIM_IP4CONFIG2_H #ifndef SHIM_IP4CONFIG2_H
#define SHIM_IP4CONFIG2_H #define SHIM_IP4CONFIG2_H

View File

@ -1,17 +1,10 @@
/** @file // SPDX-License-Identifier: BSD-2-Clause-Patent
This file provides a definition of the EFI IPv6 Configuration /*
Protocol. * This file provides a definition of the EFI IPv6 Configuration
* Protocol.
Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR> *
This program and the accompanying materials * Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.
are licensed and made available under the terms and conditions of the BSD License */
which accompanies this distribution. The full text of the license may be found at<BR>
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef SHIM_IP6CONFIG_H #ifndef SHIM_IP6CONFIG_H
#define SHIM_IP6CONFIG_H #define SHIM_IP6CONFIG_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_NETBOOT_H #ifndef SHIM_NETBOOT_H
#define SHIM_NETBOOT_H #define SHIM_NETBOOT_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_PASSWORDCRYPT_H #ifndef SHIM_PASSWORDCRYPT_H
#define SHIM_PASSWORDCRYPT_H #define SHIM_PASSWORDCRYPT_H

View File

@ -1,23 +1,16 @@
/** @file // SPDX-License-Identifier: BSD-2-Clause-Patent
EFI image format for PE32, PE32+ and TE. Please note some data structures are /*
different for PE32 and PE32+. EFI_IMAGE_NT_HEADERS32 is for PE32 and * EFI image format for PE32, PE32+ and TE. Please note some data structures
EFI_IMAGE_NT_HEADERS64 is for PE32+. * are different for PE32 and PE32+. EFI_IMAGE_NT_HEADERS32 is for PE32 and
* EFI_IMAGE_NT_HEADERS64 is for PE32+.
This file is coded to the Visual Studio, Microsoft Portable Executable and *
Common Object File Format Specification, Revision 8.0 - May 16, 2006. * This file is coded to the Visual Studio, Microsoft Portable Executable and
This file also includes some definitions in PI Specification, Revision 1.0. * Common Object File Format Specification, Revision 8.0 - May 16, 2006. This
* file also includes some definitions in PI Specification, Revision 1.0.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR> *
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> * Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials * Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
are licensed and made available under the terms and conditions of the BSD License */
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef SHIM_PEIMAGE_H #ifndef SHIM_PEIMAGE_H
#define SHIM_PEIMAGE_H #define SHIM_PEIMAGE_H

View File

@ -1,30 +1,8 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* Copyright 2013 Red Hat, Inc <pjones@redhat.com> * Copyright Red Hat, Inc
* * Copyright Peter Jones <pjones@redhat.com>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef SHIM_REPLACEMENTS_H #ifndef SHIM_REPLACEMENTS_H
#define SHIM_REPLACEMENTS_H #define SHIM_REPLACEMENTS_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_SECURITY_POLICY_H #ifndef SHIM_SECURITY_POLICY_H
#define SHIM_SECURITY_POLICY_H #define SHIM_SECURITY_POLICY_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_SHELL_H #ifndef SHIM_SHELL_H
#define SHIM_SHELL_H #define SHIM_SHELL_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_SIMPLE_FILE_H #ifndef SHIM_SIMPLE_FILE_H
#define SHIM_SIMPLE_FILE_H #define SHIM_SIMPLE_FILE_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_STR_H #ifndef SHIM_STR_H
#define SHIM_STR_H #define SHIM_STR_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_TPM_H #ifndef SHIM_TPM_H
#define SHIM_TPM_H #define SHIM_TPM_H

View File

@ -1,36 +1,8 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* shim - trivial UEFI first-stage bootloader * ucs2.h - UCS-2 string functions
* * Copyright Red Hat, Inc
* Copyright 2013 Red Hat, Inc <pjones@redhat.com> * Copyright Peter Jones <pjones@redhat.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
* Corporation.
*/ */
#ifndef SHIM_UCS2_H #ifndef SHIM_UCS2_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_VARIABLES_H #ifndef SHIM_VARIABLES_H
#define SHIM_VARIABLES_H #define SHIM_VARIABLES_H

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_WINCERT_H #ifndef SHIM_WINCERT_H
#define SHIM_WINCERT_H #define SHIM_WINCERT_H

View File

@ -1,7 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* model.c - modeling file for coverity * model.c - modeling file for coverity
* Copyright 2017 Peter Jones <pjones@redhat.com> * Copyright Peter Jones <pjones@redhat.com>
*
*/ */
#ifndef __COVERITY__ #ifndef __COVERITY__

3
mok.c
View File

@ -1,5 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* mok.c * mok.c - MoK variable processing
* Copyright 2017 Peter Jones <pjones@redhat.com> * Copyright 2017 Peter Jones <pjones@redhat.com>
*/ */

View File

@ -1,32 +1,10 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* netboot - trivial UEFI first-stage bootloader netboot support * netboot - trivial UEFI first-stage bootloader netboot support
* *
* Copyright 2012 Red Hat, Inc <mjg@redhat.com> * Copyright Red Hat, Inc
* * Author: Matthew Garrett
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* Significant portions of this code are derived from Tianocore * Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel * (http://tianocore.sf.net) and are Copyright 2009-2012 Intel

View File

@ -1,36 +1,8 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* shim - trivial UEFI first-stage bootloader * shim - trivial UEFI first-stage bootloader
* *
* Copyright 2012 Red Hat, Inc <mjg@redhat.com> * Copyright Red Hat, Inc
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel
* Corporation.
*/ */
/* Chemical agents lend themselves to covert use in sabotage against /* Chemical agents lend themselves to covert use in sabotage against

30
shim.c
View File

@ -1,32 +1,10 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
/* /*
* shim - trivial UEFI first-stage bootloader * shim - trivial UEFI first-stage bootloader
* *
* Copyright 2012 Red Hat, Inc <mjg@redhat.com> * Copyright Red Hat, Inc
* * Author: Matthew Garrett
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* Significant portions of this code are derived from Tianocore * Significant portions of this code are derived from Tianocore
* (http://tianocore.sf.net) and are Copyright 2009-2012 Intel * (http://tianocore.sf.net) and are Copyright 2009-2012 Intel

2
shim.h
View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_H_ #ifndef SHIM_H_
#define SHIM_H_ #define SHIM_H_

2
tpm.c
View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#include <efi.h> #include <efi.h>
#include <efilib.h> #include <efilib.h>
#include <string.h> #include <string.h>

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#include "version.h" #include "version.h"

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef _SHIM_VERSION_H #ifndef _SHIM_VERSION_H
#define _SHIM_VERSION_H 1 #define _SHIM_VERSION_H 1