开源授权能否标注禁止某些公司或个人该项目代码

2017-05-26 09:25:03 +08:00
 9nix00

本人有一些属于自己的开源项目,且以 MIT 授权方式发布的代码

因为懒得推广(大家都懂的,做好开源不容易,写文档就搞死人),所以一直在小范围使用。

现在因为非常鄙视某些公司的行径,想禁止对方使用。

Q1: 不知道修改 MIT 后,是否还算有效或者仍然是一份有效的开源协议?

Q2: 因为涉及到禁止某些公司的条款,所以该软件不能算开源项目?

Q3: 这么做是否违反某些法律条款,比如仅以作者喜好公开禁止某些公司使用项目?是不是有点任性?

8318 次点击
所在节点    程序员
49 条回复
reus
2017-05-26 11:01:29 +08:00
当然可以,不过对方侵权的话,你也要打官司啊,感觉没什么约束力。
vjnjc
2017-05-26 11:53:18 +08:00
@AllenHai 多谢分享,看王垠的文章总是很有意思
bk201
2017-05-26 12:28:07 +08:00
你可以挖坑哪,特定条件的坑
waruqi
2017-05-26 12:45:36 +08:00
心放宽点就好了,不用太纠结这些。。
afxcn
2017-05-26 16:00:43 +08:00
我自己喜欢用 GPL 协议,不过到现在还搞不清楚 GPL2 和 GPL3 有什么区别。
tcdw
2017-05-26 16:45:27 +08:00
https://opensource.org/osd

> 5. No Discrimination Against Persons or Groups
> The license must not discriminate against any person or group of persons.
firefox12
2017-05-26 16:54:22 +08:00
知道 freebsd 为什呢会输掉和 linux 的战争了吧。
Sorrow
2017-05-26 17:11:36 +08:00
你可以考虑使用 AGPL 协议。
https://www.gnu.org/licenses/agpl-3.0.en.html
cnbeining
2017-05-26 21:06:27 +08:00
Tunar
2017-05-26 21:09:38 +08:00
@cstj0505 和心态有毛关系,开源又不是随便想怎么用怎么用
yangqi
2017-05-26 21:39:00 +08:00
@Tunar MIT 协议基本就是想怎么样就怎么用,楼主既然用了 MIT 协议开源,就应该清楚协议内容。现在来说这些怎么不是心态问题了.
Tunar
2017-05-26 22:22:29 +08:00
@yangqi 我说的是一楼的观点,不是具体某一个协议怎样怎样,看清楚再说,谢谢
libook
2017-05-26 22:29:37 +08:00
新版本可以发布修改的开源协议,禁止特定公司使用。
但是已发布的未修改协议的开源软件好像就不受限制了。
毕竟开源协议也是协议的一种,双方遵守。
yangqi
2017-05-26 22:39:55 +08:00
@Tunar 我看的很清楚,你自己没说清楚。开源前没想清楚,开源后跑来抱怨就是心态问题
jininij
2017-05-26 22:45:58 +08:00
协议是你写的,你想怎样就怎样呗。
msg7086
2017-05-27 01:32:41 +08:00
开源授权是你自己撰写的,当然怎么写都可以。
只要不借用别的开源协议条款就行了。
如果你写 MIT,那就必须遵守 MIT 对你的限制。如果不写,当然也就不必遵守了。
expy
2017-05-27 01:43:57 +08:00
Beerware 都存在,自己写个协议取个名字就好了。。。
tyfulcrum
2017-05-27 01:51:45 +08:00
如果担心有小人利用开源代码,以国内的环境看还是直接不开源比较好——毕竟连腾讯这种体量的公司也不遵守 GPL。
monnand
2017-05-27 01:56:38 +08:00
各位回答的人,如果不了解请不要瞎编。

Q1: 不知道修改 MIT 后,是否还算有效或者仍然是一份有效的开源协议?

不行。开源协议的定义是 OSI 确认的,自由软件协议是自由软件基金会确认的。你修改之后就不叫 MIT 许可证了,就不再被这两个组织承认了。另外,你如果针对某个特别的公司做特例不让他们用,那么 OSI 肯定不会承认,因为他们规定的开源软件定义里第一条就是:

The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.

全文参加 https://opensource.org/osd-annotated

Q2: 因为涉及到禁止某些公司的条款,所以该软件不能算开源项目?

不算,我前面说了,参加开源软件定义。注意:这是定义,是提出开源软件概念的组织 OSI 提出的定义,是和开源软件概念同时提出来的。

Q3: 这么做是否违反某些法律条款,比如仅以作者喜好公开禁止某些公司使用项目?是不是有点任性?

我不是律师,但以我的理解,应该不会违反国内或大多数国外的法律。
monnand
2017-05-27 02:00:34 +08:00
另外还有两条开源软件定义也会相关

5. No Discrimination Against Persons or Groups
The license must not discriminate against any person or group of persons.

Rationale: In order to get the maximum benefit from the process, the maximum diversity of persons and groups should be equally eligible to contribute to open sources. Therefore we forbid any open-source license from locking anybody out of the process.

Some countries, including the United States, have export restrictions for certain types of software. An OSD-conformant license may warn licensees of applicable restrictions and remind them that they are obliged to obey the law; however, it may not incorporate such restrictions itself.

6. No Discrimination Against Fields of Endeavor
The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

Rationale: The major intention of this clause is to prohibit license traps that prevent open source from being used commercially. We want commercial users to join our community, not feel excluded from it.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/363898

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX