Sponsored by: Serenity Cyber Security, LLC
Obtained from: OpenBSD
MFC after: 1 week
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/compat/linuxkpi/common/include/linux/string_helpers.h | ||
---|---|---|
4 | _LINUXKPI_LINUX_.. |
sys/compat/linuxkpi/common/include/linux/string_helpers.h | ||
---|---|---|
1 | Likely taken from OpenBSD so we can't change the licence I think |
sys/compat/linuxkpi/common/include/linux/string_helpers.h | ||
---|---|---|
1 | tl;dr: it's fine as public domain... too long: Small nit to pick. It's not entirely true we can't change it. Public domain means you can do anything you want, including copyrighting the work and licensing it for money (cf Disney). We are allowed to do 0BSD, but we don't have to do 0BSD. If it is from OpenBSD with this license, though, it may be that we can't change it due to politics rather than legal issues :). I'd feel better with this as 0BSD on the abstract level... but there's little enough creative content in this file to worry overmuch. These routines are implemented in one of the few sensible ways to do this. There's no comments for creative content. The guard header names are just the path. There's not a lot here to protect, so conversely, there's not much risk. The bigger issue is credit... and that's well covered by the Obtained From: line in the commit message. That's likely sufficient to give them credit (because it's the nice thing to do) as well as give people a way to track this back to the source should there ever be an issue that's litigated (which is possible, but very, very remote). | |
4 | #pragma once But it's changing the OpenBSD code and while that may be fine for this file, others are less trivial and it sets a bad precident. |
sys/compat/linuxkpi/common/include/linux/string_helpers.h | ||
---|---|---|
1 |
One thing I would do though possibly is to reference the path to the file and the revision it was taken from. But this is also not the first LinuxKPI file under "Public Domain" which makes it in this way and not the last (more even in the current batch). |