mirror of
https://github.com/systemd/systemd.git
synced 2025-01-05 13:18:06 +03:00
man: add licenses to all files that lack one
Documentation is licensed under LGPL-2.1-or-later. Scripts are MIT to facilitate reuse. Examples are relicensed to CC0-1.0 to maximise copy-and-paste for users, with permission from authors.
This commit is contained in:
parent
948def4af6
commit
f4d74c6105
@ -1,3 +1,4 @@
|
|||||||
|
; SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
; special .c mode with reduced indentation for man pages
|
; special .c mode with reduced indentation for man pages
|
||||||
((c-mode . ((fill-column . 80)
|
((c-mode . ((fill-column . 80)
|
||||||
(c-basic-offset . 2)
|
(c-basic-offset . 2)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: CC0-1.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,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import re
|
import re
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
|
# SPDX-License-Identifier: CC0-1.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,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: CC0-1.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).
|
||||||
sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn
|
sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sd-hwdb.h>
|
#include <sd-hwdb.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <systemd/sd-id128.h>
|
#include <systemd/sd-id128.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <systemd/sd-journal.h>
|
#include <systemd/sd-journal.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <systemd/sd-journal.h>
|
#include <systemd/sd-journal.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <systemd/sd-journal.h>
|
#include <systemd/sd-journal.h>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sd-path.h>
|
#include <sd-path.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||||
|
|
||||||
<refentry id="repart.d" conditional='ENABLE_REPART'
|
<refentry id="repart.d" conditional='ENABLE_REPART'
|
||||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <systemd/sd-bus.h>
|
#include <systemd/sd-bus.h>
|
||||||
|
|
||||||
int append_strings_to_message(sd_bus_message *m, const char *const *arr) {
|
int append_strings_to_message(sd_bus_message *m, const char *const *arr) {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <systemd/sd-bus.h>
|
#include <systemd/sd-bus.h>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <systemd/sd-bus.h>
|
#include <systemd/sd-bus.h>
|
||||||
#define _cleanup_(f) __attribute__((cleanup(f)))
|
#define _cleanup_(f) __attribute__((cleanup(f)))
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: CC0-1.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).
|
||||||
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/sdXn
|
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/sdXn
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* SPDX-License-Identifier: CC0-1.0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
||||||
<node>
|
<node>
|
||||||
<interface name="org.freedesktop.DBus.Peer">
|
<interface name="org.freedesktop.DBus.Peer">
|
||||||
<method name="Ping"/>
|
<method name="Ping"/>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
# Destroy any old key on the Yubikey (careful!)
|
# Destroy any old key on the Yubikey (careful!)
|
||||||
ykman piv reset
|
ykman piv reset
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user