Skip to content

Delete unnecessary NOTICE file with likely incorrect copyright notice#459

Merged
rhatdan merged 1 commit intocontainers:mainfrom
richardfontana:fix-notice
Apr 29, 2026
Merged

Delete unnecessary NOTICE file with likely incorrect copyright notice#459
rhatdan merged 1 commit intocontainers:mainfrom
richardfontana:fix-notice

Conversation

@richardfontana
Copy link
Copy Markdown
Contributor

@richardfontana richardfontana commented Apr 29, 2026

A contributor opened #109 requesting a completely unnecessary NOTICE file, possibly misinterpreting the traditional (now largely outdated) guidance given in the appendix to GPLv2, which has generally been used by some projects as standard language for copyright and license notices in individual source files. This itself was sort of harmless, but the pull request that implemented the change #110 added a Free Software Foundation copyright notice that I would assume is completely erroneous. (That is, I assume this project is not copyrighted by the FSF in general and does not contain anything copyrighted by the FSF, apart from the GPL text itself of course.) The result is that this project has a NOTICE file that has misleadingly implied that the project is copyrighted by the FSF.

This pull request just deletes the file. It was never necessary because there's already a copy of the GPL in the repository.

Summary by Sourcery

Documentation:

  • Delete the obsolete NOTICE file that contained an incorrect copyright attribution.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Apr 29, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR removes an unnecessary and misleading NOTICE file that incorrectly implied the project is copyrighted by the Free Software Foundation, relying instead on the existing GPL license file in the repository.

File-Level Changes

Change Details Files
Remove the misleading NOTICE file from the repository.
  • Delete the NOTICE file that incorrectly suggested FSF copyright over the project
  • Rely on the existing GPL license file as the authoritative licensing document
NOTICE

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the NOTICE file from the repository. The reviewer raised a concern that this removal may introduce legal ambiguity regarding the project's licensing terms, specifically noting a potential discrepancy between the 'or later' clause previously documented and the 'GPL-2.0-only' identifier currently present in the .spec file.

I am having trouble creating individual review comments. Click here to see my feedback.

NOTICE (1-15)

medium

Deleting this file removes the 'or later' licensing clause (line 6) and the explicit warranty disclaimer, which are not provided by the LICENSE file alone (which contains only the verbatim license text). There is a discrepancy between the 'or later' terms in this file and the GPL-2.0-only identifier in the .spec file (line 40). While the FSF copyright is likely incorrect, the notice itself is the standard way to apply the GPL to a project as described in the GPLv2 appendix. If this information is not already present in every source file header, removing this file may lead to legal ambiguity or an unintended change in licensing terms from 'or-later' to 'only'.

@richardfontana
Copy link
Copy Markdown
Contributor Author

Deleting this file removes the 'or later' licensing clause (line 6) and the explicit warranty disclaimer, which are not provided by the LICENSE file alone (which contains only the verbatim license text).

So first of all, the LICENSE file contains (obviously) the full warranty disclaimer that is part of GPLv2. It's true that, especially in the past, it was common for some projects to add explicit warranty disclaimers in individual source files. It was never particularly common for open source projects to add warranty disclaimers in standalone "NOTICE" files, so doing so in #110 was unusual and was not the (arguably mistaken) concern identified in #109.

Second, the point about "or later":

There is a discrepancy between the 'or later' terms in this file and the GPL-2.0-only identifier in the .spec file (line 40). While the FSF copyright is likely incorrect, the notice itself is the standard way to apply the GPL to a project as described in the GPLv2 appendix.

It's true that there's a discrepancy, which I'd overlooked, but that actually might suggest that the use of 'or later' in the NOTICE file was incorrect and wasn't caught by the maintainers who merged the pull request. It's also generally true, and I didn't think of this, that the NOTICE file may have served a purpose in resolving whether the project is 'only' or 'or later' (except it didn't, because of the inconsistent spec file). But there are various ways to do this that are better. For example, the README.md file could clarify whether the project is 'only' or 'or later'.

It is incorrect however to say that the notice is "the standard way to apply the GPL to a project" since (a) most GPL projects don't use this language nowadays, and (b) the language isn't meant to be put in a standalone NOTICE file, which I've rarely seen but is unusual and thus anything but standard.

If this information is not already present in every source file header, removing this file may lead to legal ambiguity or an unintended change in licensing terms from 'or-later' to 'only'.

I'd submit that the likely intent of the project is what's suggested in the spec file, and therefore the NOTICE file has always been wrong, but it's not really a super-important issue. Removal of the incorrect copyright notice is important however.

@lsm5
Copy link
Copy Markdown
Member

lsm5 commented Apr 29, 2026

Thank you so much @richardfontana for the PR and the responses to review bot comments!!! I think most (all?) maintainers had largely ignored the NOTICE file all these years, so really appreciate you pointing this out. Some responses inline..

That is, I assume this project is not copyrighted by the FSF in general

it's not (and it'd be news to me if it is).

and does not contain anything copyrighted by the FSF,

Hmm, I want to say that's correct, but is there a verification tool or anything I could use before answering this?

I'd submit that the likely intent of the project is what's suggested in the spec file, and therefore the NOTICE file has always been wrong,

Yes, the spec file began with License: GPLv2 (ever since the container-selinux package was included in Fedora which is where the spec file was taken from for left-shifting) and then updated to License: GPL-2.0-only for SPDX.

If it matters, back in 2015, when this project was docker-selinux, it underwent a license change from LGPL to GPLv2 (commit b8aae8f)

the README.md file could clarify whether the project is 'only' or 'or later'.

What would you recommend here as README.md addition? And, should it be done right away? FWIW, my personal preference would be to have something which would not block any potential relicensing effort if we choose to go that route.


PTAL @rhatdan @haircommander @TomSweeneyRedHat @jankaluza @containers/container-selinux-maintainers

(Ignore any CI job failures)

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 29, 2026

LGTM

@rhatdan rhatdan merged commit 3a0b1fb into containers:main Apr 29, 2026
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants