Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Apache 2.0 OR BSD-3-Clause licenses in all crates #235

Merged
merged 6 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions LICENSE-BSD-3-Clause
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright 2022 The rust-vmm authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. 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.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

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.
7 changes: 7 additions & 0 deletions crates/gpio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ use to communicate as well as share the guests memory over a memfd.
-object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
-numa node,memdev=mem \
...

## License

This project is licensed under either of

- [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0
- [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
2 changes: 1 addition & 1 deletion crates/gpio/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::{info, warn};
use std::num::ParseIntError;
Expand Down
2 changes: 1 addition & 1 deletion crates/gpio/src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::error;
use std::sync::{Arc, RwLock};
Expand Down
2 changes: 1 addition & 1 deletion crates/gpio/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

#[cfg(target_env = "gnu")]
mod backend;
Expand Down
2 changes: 1 addition & 1 deletion crates/gpio/src/vhu_gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::error;
use std::mem::size_of;
Expand Down
7 changes: 7 additions & 0 deletions crates/i2c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ use to communicate as well as share the guests memory over a memfd.
-object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
-numa node,memdev=mem \
...

## License

This project is licensed under either of

- [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0
- [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
2 changes: 1 addition & 1 deletion crates/i2c/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2021 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::info;
use std::collections::HashMap;
Expand Down
2 changes: 1 addition & 1 deletion crates/i2c/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2021 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

mod i2c;
mod vhu_i2c;
Expand Down
2 changes: 1 addition & 1 deletion crates/i2c/src/vhu_i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2021 Linaro Ltd. All Rights Reserved.
// Viresh Kumar <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::warn;
use std::mem::size_of;
Expand Down
7 changes: 7 additions & 0 deletions crates/rng/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ for the backend RNG device to communicate with the vhost RNG daemon:
-device vhost-user-rng-pci,chardev=rng0 \
-numa node,memdev=mem \
...

## License

This project is licensed under either of

- [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0
- [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
2 changes: 1 addition & 1 deletion crates/rng/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
mod vhu_rng;

use log::{info, warn};
Expand Down
2 changes: 1 addition & 1 deletion crates/rng/src/vhu_rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <[email protected]>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause

use log::warn;
use std::io::Read;
Expand Down
12 changes: 4 additions & 8 deletions crates/vsock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ use my_crate;

## License

**!!!NOTICE**: The BSD-3-Clause license is not included in this template.
The license needs to be manually added because the text of the license file
also includes the copyright. The copyright can be different for different
crates. If the crate contains code from CrosVM, the crate must add the
CrosVM copyright which can be found
[here](https://chromium.googlesource.com/chromiumos/platform/crosvm/+/master/LICENSE).
For crates developed from scratch, the copyright is different and depends on
the contributors.
This project is licensed under either of

- [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0
- [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause)