opensource licence for safety

huangapple go评论100阅读模式
英文:

opensource licence for safety

问题

我计划使用一个GitHub公共存储库来构建一个仅适用于特定硬件的小应用程序;它仅供我个人在我的电脑上使用:如果在其他硬件上使用可能会导致问题,甚至可能损坏硬件(我不确定)。我不介意如果有人发现我的代码对他们有用并用于他们的需求,但我不希望有人因为它不起作用或引发问题而责怪我或起诉我。

我看过一些许可证,如Apache v2、MIT、GPL等,但我感到非常困惑。我真的不理解法律的影响。是不是最好只是将我的代码保留在自己手里,不使用GitHub呢?

有些用户可能认为Stack Overflow不是这个问题的最佳场所,但我认为因为这里的每个人都是程序员,也许我会得到有用的信息,这可能有助于解答其他人的疑问。

英文:

I am planning to use a GitHub public repository for building a small application that works only on some specific hardware; it's for personal use only in my PC: if used on other hardware it may cause issues or maybe even hardware damage (I don't know). I don't mind if some one find my code useful and use for their needs, but I don't want anyone blaming me or suing me because it didn't work or caused issue.

Which license can I use to prevent such issues?

I have looked at few like Apache v2, MIT, GPL, etc, but I feel very confused. I don't really understand the legal implications. Is it better just keep my code with me and not use GitHub?

Some users may feel Stack Overflow is not the best place for this question but I think because everyone here is a programmer, maybe I'll get useful information and that may help clear another person's doubts as well.

答案1

得分: 3

大多数开源许可证都包含免责声明和责任限制的条款。只要你所在的司法管辖区允许你免除保证和责任,其中任何一种许可证都可以使用。

例如,MIT许可证包括以下内容:

软件按原样提供,不提供任何形式的保证,包括但不限于适销性、特定用途适用性和非侵权性的保证。在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任承担责任,无论是合同行为、侵权行为还是其他行为,无论是因软件或使用或其他方式与软件或使用相关的索赔、损害或其他责任。

而来自Apache许可证的内容如下:

  1. 免责声明。除非适用法律要求或书面同意,许可人按“按原样”提供作品(每个贡献者按“按原样”提供其贡献),不提供任何明示或暗示的保证或条件,包括但不限于所有权、非侵权、适销性或特定用途的保证或条件。您应自行确定使用或重新分发作品的适当性,并承担在本许可下行使权限所涉及的任何风险。
  1. 责任限制。除非适用法律要求(如故意和重大过失行为)或书面同意,无论是侵权(包括过失)、合同还是其他法律理论,任何贡献者均不对您承担任何责任,包括任何直接、间接、特殊、附带或结果性的损害赔偿,无论其性质如何,无论是因本许可或使用或无法使用作品而产生的损害赔偿(包括但不限于商誉损失、工作停顿、计算机故障或故障,或任何商业损害或损失),即使该贡献者已被告知可能发生此类损害。

而来自GNU通用公共许可证的内容如下:

  1. 免责声明。

对于程序,根据适用法律的规定,没有任何保证。除非另有书面说明,版权持有人和/或其他方以“按原样”提供程序,不提供任何明示或暗示的保证,包括但不限于适销性和特定用途的暗示保证。程序的质量和性能完全由您承担风险。如果程序被证明有缺陷,您承担所有必要的维修、修复或更正的费用。

  1. 责任限制。

除非适用法律要求或书面同意,任何版权持有人或根据上述许可修改和/或传播程序的其他方均不对您承担任何责任,包括任何一般、特殊、附带或结果性的损害赔偿,无论是因使用或无法使用程序而产生的(包括但不限于数据丢失或数据不准确或您或第三方遭受的损失或程序与任何其他程序的不兼容而导致的损失),即使该持有人或其他方已被告知可能发生此类损害。

因此,你提到的任何许可证都已经包含了你所需要的类型的条款。

英文:

Most Open Source licenses include a warranty disclaimer and liability limitation language. To the extent that your jurisdiction allows you to disclaim warranty and liability, any of them are likely to be usable.

For instance, the MIT license includes:

>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
>THE SOFTWARE.

And from the Apache License:

> 7<!-- -->. Disclaimer of Warranty. Unless required by applicable law or
> agreed to in writing, Licensor provides the Work (and each
> Contributor provides its Contributions) on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied, including, without limitation, any warranties or conditions
> of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
> PARTICULAR PURPOSE. You are solely responsible for determining the
> appropriateness of using or redistributing the Work and assume any
> risks associated with Your exercise of permissions under this License.
>
> 8<!-- -->. Limitation of Liability. In no event and under no legal theory,
> whether in tort (including negligence), contract, or otherwise,
> unless required by applicable law (such as deliberate and grossly
> negligent acts) or agreed to in writing, shall any Contributor be
> liable to You for damages, including any direct, indirect, special,
> incidental, or consequential damages of any character arising as a
> result of this License or out of the use or inability to use the
> Work (including but not limited to damages for loss of goodwill,
> work stoppage, computer failure or malfunction, or any and all
> other commercial damages or losses), even if such Contributor
> has been advised of the possibility of such damages.

And from the GNU General Public License:

> 15<!-- -->. Disclaimer of Warranty.
>
> THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
>APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
>HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
>OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
>THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
>PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
>IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
>ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
>
> 16<!-- -->. Limitation of Liability.
>
> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
>WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
>THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
>GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
>USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
>DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
>PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
>EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
>SUCH DAMAGES.

So any of the licenses you mentioned already have the type of language you're after.

答案2

得分: 0

考虑选择一个备受尊重的开源许可证,并创建一个README文件,其中包含以下内容:

作者对使用本软件所产生的后果不负责任。

并且在每个文件中添加这一行,以便使用者能够看到。

英文:

What about going for a well respected open source license and creating a README file, with a line, like:

> The author is not responsible for the consequences of use of this software.

and also adding this to every file you have so that the one using it has to see it.

答案3

得分: -1

您可以将以下内容添加到您的源代码头文件和自述文件中:

在任何情况下,作者对任何一方因使用本软件及其文档而导致的直接、间接、特殊、附带或后果性损害,包括利润损失,在内,不承担任何责任,即使作者已被告知此类损害的可能性。

作者明确否认任何担保,包括但不限于对特定目的的适销性和适用性的默示担保。本软件及其附带文档(如果有)按“原样”提供。作者无义务提供维护、支持、更新、增强或修改。

免责声明:本文不构成法律建议。

英文:

You can add following to your sources header and readme file:

>IN NO EVENT SHALL AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
>AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". AUTHOR HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Disclaimer: This is not a legal Advice

答案4

得分: -1

你列出的许可证中,使用MIT许可证。它包含了你需要的保护条款,但允许任何人几乎可以对你的代码做任何事情(除了假装它是他们自己的)。

为什么选择MIT许可证?因为它非常简短,你只需要将它包含在你的源代码中。如果你不知道还需要什么其他内容,选择这个许可证就足够了。

英文:

Of the licences you listed, use MIT. It contains the protective clause you need but lets anyone do just about anything with your code (except pretend it's theirs).

Why MIT? Because it's really short and you just include it in your source code. if you don't know what else you need pick this one because it's all you need.

答案5

得分: -1

我是一名律师(也是一名程序员)。最好的建议是不要自己编写许可证 - 我会使用开放源代码倡议(Open Source Initiative)提供的许可证资源这里。MIT许可证是合适的,因为它排除了所有保证,并放弃了对代码使用的所有责任。例如,Apache 2.0许可证也是如此。在开源许可证中,排除保证和责任是一个常见特征,在保证和责任方面,它们之间没有太多区别,所以我倾向于选择较短的MIT许可证。

我同意James Henstridge在上面的回答中所说的:“在您的司法管辖区允许您免除保证和责任的范围内,任何一种许可证都可能可用。”

您在哪个司法管辖区(国家)?

英文:

I'm a lawyer (and a programmer). The best advice is not roll your own licence - I would use the OSI (Open Source Initiative) licence resource available here. The MIT licence would be appropriate as it contains exclusions of all warranties and disavows all liability for use of the code. So does (for example) the Apache 2.0 licence. The exclusion of warranties and all liability is a common feature in open source licences, and there's not much to distinguish the one from the other insofar as warranties and liability are concerned, so I would tend to the shorter of them, which is the MIT licence.

I agree with James Henstridge's answer above where he writes "To the extent that your jurisdiction allows you to disclaim warranty and liability, any of them are likely to be usable."

Which jurisdiction (country) are you in?

huangapple
  • 本文由 发表于 2014年3月25日 16:53:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/22629467.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定