mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
Merge pull request #25146 from keszybz/relicese-to-mit-0
Change license of code examples in docs to MIT-0
This commit is contained in:
commit
7155a51e64
7
LICENSES/MIT-0.txt
Normal file
7
LICENSES/MIT-0.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
MIT No Attribution
|
||||||
|
|
||||||
|
Copyright <YEAR> <COPYRIGHT HOLDER>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.
|
||||||
|
|
||||||
|
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.
|
@ -45,9 +45,10 @@ The following exceptions apply:
|
|||||||
* the following sources are licensed under the **CC0-1.0** license:
|
* the following sources are licensed under the **CC0-1.0** license:
|
||||||
- src/basic/siphash24.c
|
- src/basic/siphash24.c
|
||||||
- src/basic/siphash24.h
|
- src/basic/siphash24.h
|
||||||
- src/systemctl/systemd-sysv-install.SKELETON
|
|
||||||
- tools/check-includes.pl
|
- tools/check-includes.pl
|
||||||
|
* the following sources are licensed under the **MIT-0** license:
|
||||||
- all examples under man/
|
- all examples under man/
|
||||||
|
- src/systemctl/systemd-sysv-install.SKELETON
|
||||||
- config files and examples under /network
|
- config files and examples under /network
|
||||||
* the following sources are under **Public Domain** (LicenseRef-murmurhash2-public-domain):
|
* the following sources are under **Public Domain** (LicenseRef-murmurhash2-public-domain):
|
||||||
- src/basic/MurmurHash2.c
|
- src/basic/MurmurHash2.c
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
# set the default value
|
# set the default value
|
||||||
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
|
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
os_release = platform.freedesktop_os_release()
|
os_release = platform.freedesktop_os_release()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import re
|
import re
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
|
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
|
||||||
. "${os_release}"
|
. "${os_release}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
# Enroll the security token in the LUKS2 volume. Replace /dev/sdXn by the
|
# Enroll the security token in the LUKS2 volume. Replace /dev/sdXn by the
|
||||||
# partition to use (e.g. /dev/sda1).
|
# partition to use (e.g. /dev/sda1).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <systemd/sd-id128.h>
|
#include <systemd/sd-id128.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <systemd/sd-bus.h>
|
#include <systemd/sd-bus.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <systemd/sd-bus.h>
|
#include <systemd/sd-bus.h>
|
||||||
#define _cleanup_(f) __attribute__((cleanup(f)))
|
#define _cleanup_(f) __attribute__((cleanup(f)))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
# Enroll the TPM2 security chip in the LUKS2 volume, and bind it to PCR 7
|
# Enroll the TPM2 security chip in the LUKS2 volume, and bind it to PCR 7
|
||||||
# only. Replace /dev/sdXn by the partition to use (e.g. /dev/sda1).
|
# only. Replace /dev/sdXn by the partition to use (e.g. /dev/sda1).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: CC0-1.0 */
|
/* SPDX-License-Identifier: MIT-0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
|
||||||
# Destroy any old key on the Yubikey (careful!)
|
# Destroy any old key on the Yubikey (careful!)
|
||||||
ykman piv reset
|
ykman piv reset
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This example config file is installed as part of systemd.
|
# This example config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To use the file, one of the following methods may be used:
|
# To use the file, one of the following methods may be used:
|
||||||
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This example config file is installed as part of systemd.
|
# This example config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To use the file, one of the following methods may be used:
|
# To use the file, one of the following methods may be used:
|
||||||
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This example config file is installed as part of systemd.
|
# This example config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To use the file, one of the following methods may be used:
|
# To use the file, one of the following methods may be used:
|
||||||
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
# 1. add a symlink from /etc/systemd/network to the current location of this file,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This config file is installed as part of systemd.
|
# This config file is installed as part of systemd.
|
||||||
# It may be freely copied and edited (following the Creative Commons Zero v1.0 Universal License).
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
#
|
#
|
||||||
# To make local modifications, one of the following methods may be used:
|
# To make local modifications, one of the following methods may be used:
|
||||||
# 1. add a drop-in file that extends this file by creating the
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: MIT-0
|
||||||
#
|
#
|
||||||
# This script is called by "systemctl enable/disable" when the given unit is a
|
# This script is called by "systemctl enable/disable" when the given unit is a
|
||||||
# SysV init.d script. It needs to call the distribution's mechanism for
|
# SysV init.d script. It needs to call the distribution's mechanism for
|
||||||
|
Loading…
Reference in New Issue
Block a user