rng: update License in source files and readme

Cargo.toml defines `license = "Apache-2.0 OR BSD-3-Clause"`,
so let's update the SPDX in source files and add a section
in the readme about the license.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
This commit is contained in:
Stefano Garzarella 2022-10-18 11:09:45 +02:00 committed by Mathieu Poirier
parent 8ead248560
commit 8e1fb7e985
3 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -2,7 +2,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <mathieu.poirier@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
mod vhu_rng;
use log::{info, warn};

View File

@ -3,7 +3,7 @@
// Copyright 2022 Linaro Ltd. All Rights Reserved.
// Mathieu Poirier <mathieu.poirier@linaro.org>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
use log::warn;
use std::io::Read;