1
0
mirror of https://github.com/systemd/systemd synced 2026-03-25 00:04:53 +01:00

Compare commits

..

No commits in common. "8a513eee30ac5128d3176bec90c8ed118764c54f" and "84817bfdb39cf7bf27992ac8f10fc7937b00664d" have entirely different histories.

9 changed files with 48 additions and 150 deletions

View File

@ -68,11 +68,6 @@ usb:v08FFp5731*
usb:v5501p08FF* usb:v5501p08FF*
ID_AUTOSUSPEND=1 ID_AUTOSUSPEND=1
# Supported by libfprint driver egis0570
usb:v1C7Ap0570*
usb:v1C7Ap0571*
ID_AUTOSUSPEND=1
# Supported by libfprint driver elan # Supported by libfprint driver elan
usb:v04F3p0903* usb:v04F3p0903*
usb:v04F3p0907* usb:v04F3p0907*
@ -132,11 +127,6 @@ usb:v04F3p0C42*
usb:v04F3p0C4D* usb:v04F3p0C4D*
usb:v04F3p0C4F* usb:v04F3p0C4F*
usb:v04F3p0C63* usb:v04F3p0C63*
usb:v04F3p0C6E*
ID_AUTOSUSPEND=1
# Supported by libfprint driver elanmoc
usb:v04F3p0C7E*
ID_AUTOSUSPEND=1 ID_AUTOSUSPEND=1
# Supported by libfprint driver etes603 # Supported by libfprint driver etes603
@ -274,6 +264,7 @@ usb:v147Ep1002*
usb:v1491p0088* usb:v1491p0088*
usb:v16D1p1027* usb:v16D1p1027*
usb:v1C7Ap0300* usb:v1C7Ap0300*
usb:v1C7Ap0570*
usb:v1C7Ap0575* usb:v1C7Ap0575*
usb:v27C6p5042* usb:v27C6p5042*
usb:v27C6p5110* usb:v27C6p5110*

View File

@ -112,6 +112,14 @@ ieee1394:ven*sp0000A02Dver00000110
# BridgeCo. Enhancement BreakOut Box (BeBoB) for DM1000, DM1100, and DM1500 ASICs. # BridgeCo. Enhancement BreakOut Box (BeBoB) for DM1000, DM1100, and DM1500 ASICs.
# #
# Match to eAR Master One, Eroica, Figaro, and Ciaccona.
ieee1394:node:ven0x000aacmo0x000002units0x00a02d:0x010001
ieee1394:ven00000AACmo00000002sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Acoustic Reality
ID_MODEL_FROM_DATABASE=eAR FireWire Audio
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x0003dbmo0x01eeeeunits0x00a02d:0x010001 ieee1394:node:ven0x0003dbmo0x01eeeeunits0x00a02d:0x010001
ieee1394:ven000003DBmo0001EEEEsp0000A02Dver00010001 ieee1394:ven000003DBmo0001EEEEsp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Apogee Electronics ID_VENDOR_FROM_DATABASE=Apogee Electronics
@ -314,7 +322,7 @@ ieee1394:ven00000FF2mo00010065sp0000A02Dver00010001
IEEE1394_UNIT_FUNCTION_AUDIO=1 IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0 IEEE1394_UNIT_FUNCTION_VIDEO=0
# An extension card for Mackie d.2. Mackie d.2 Pro is preinstalled model. # An extension card for Mackie d.2.
ieee1394:node:ven0x000ff2mo0x010067units0x00a02d:0x010001 ieee1394:node:ven0x000ff2mo0x010067units0x00a02d:0x010001
ieee1394:ven00000FF2mo00010067sp0000A02Dver00010001 ieee1394:ven00000FF2mo00010067sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Loud Technologies ID_VENDOR_FROM_DATABASE=Loud Technologies
@ -322,41 +330,8 @@ ieee1394:ven00000FF2mo00010067sp0000A02Dver00010001
IEEE1394_UNIT_FUNCTION_AUDIO=1 IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0 IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x001496mo0x050000units0x00a02d:0x010001 # Match to FireFly 202, 302, 808, and 808 Universal.
ieee1394:ven00001496mo00050000sp0000A02Dver00010001 # Match to HelixBoard 12 mk II, 18 mk II, 24 mk II, 12 Universal, 18 Universal, and 24 Universal.
ID_VENDOR_FROM_DATABASE=Phonic
ID_MODEL_FROM_DATABASE=Helixboard 12 FireWire MkII
IEEE1394_UNIT_FUNCTION_MIDI=1
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x001496mo0x060000units0x00a02d:0x010001
ieee1394:ven00001496mo00060000sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Phonic
ID_MODEL_FROM_DATABASE=Helixboard 18 FireWire MkII
IEEE1394_UNIT_FUNCTION_MIDI=1
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x001496mo0x070000units0x00a02d:0x010001
ieee1394:ven00001496mo00070000sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Phonic
ID_MODEL_FROM_DATABASE=Helixboard 24 FireWire MkII
IEEE1394_UNIT_FUNCTION_MIDI=1
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x001496mo0x080000units0x00a02d:0x010001
ieee1394:ven00001496mo00080000sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Phonic
ID_MODEL_FROM_DATABASE=Firefly 808 FireWire
IEEE1394_UNIT_FUNCTION_MIDI=1
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
# Match to FireFly 202, 302, 808 Universal.
# Match to HelixBoard 12 FireWire, 18 FireWire, 24 FireWire.
# Match to HelixBoard 12 Universal, 18 Universal, and 24 Universal.
ieee1394:node:ven0x001496mo0x000000units0x00a02d:0x010001 ieee1394:node:ven0x001496mo0x000000units0x00a02d:0x010001
ieee1394:ven00001496mo00000000sp0000A02Dver00010001 ieee1394:ven00001496mo00000000sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Phonic ID_VENDOR_FROM_DATABASE=Phonic
@ -411,15 +386,6 @@ ieee1394:ven00010065mo00010067sp0000A02Dver00010001
IEEE1394_UNIT_FUNCTION_AUDIO=1 IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0 IEEE1394_UNIT_FUNCTION_VIDEO=0
# Match to TerraTec Aureon 7.1 FireWire.
# Match to eAR Master One, Eroica, Figaro, and Ciaccona. OEM by TerraTec perhaps.
ieee1394:node:ven0x000aacmo0x000002units0x00a02d:0x010001
ieee1394:ven00000AACmo00000002sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=TerraTec
ID_MODEL_FROM_DATABASE=Aureon 7.1 FireWire
IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0
ieee1394:node:ven0x000aacmo0x000003units0x00a02d:0x010001 ieee1394:node:ven0x000aacmo0x000003units0x00a02d:0x010001
ieee1394:ven00000AACmo00000003sp0000A02Dver00010001 ieee1394:ven00000AACmo00000003sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=TerraTec Electronic ID_VENDOR_FROM_DATABASE=TerraTec Electronic
@ -579,7 +545,6 @@ ieee1394:ven00000FF2mo00081216sp0000A02Dver00010001
IEEE1394_UNIT_FUNCTION_AUDIO=1 IEEE1394_UNIT_FUNCTION_AUDIO=1
IEEE1394_UNIT_FUNCTION_VIDEO=0 IEEE1394_UNIT_FUNCTION_VIDEO=0
# Match to former model of Onyx 1640i.
ieee1394:node:ven0x000ff2mo0x001640units0x00a02d:0x010001 ieee1394:node:ven0x000ff2mo0x001640units0x00a02d:0x010001
ieee1394:ven00000FF2mo00001640sp0000A02Dver00010001 ieee1394:ven00000FF2mo00001640sp0000A02Dver00010001
ID_VENDOR_FROM_DATABASE=Loud Technologies ID_VENDOR_FROM_DATABASE=Loud Technologies
@ -742,7 +707,7 @@ ieee1394:ven00000FF2mo00000007sp00000FF2ver00000001
ID_MODEL_FROM_DATABASE=Mackie Onyx Blackbird ID_MODEL_FROM_DATABASE=Mackie Onyx Blackbird
IEEE1394_UNIT_FUNCTION_AUDIO=1 IEEE1394_UNIT_FUNCTION_AUDIO=1
# Match to latter models of Onyx 820i, 1220i, 1620i, and 1640i. # Match to Onyx 1640i, and latter models of Onyx 820i, 1220i, and 1620i.
ieee1394:node:ven0x000ff2mo0x000006units0x000ff2:0x000001 ieee1394:node:ven0x000ff2mo0x000006units0x000ff2:0x000001
ieee1394:ven00000FF2mo00000006sp00000FF2ver00000001 ieee1394:ven00000FF2mo00000006sp00000FF2ver00000001
ID_VENDOR_FROM_DATABASE=Loud Technologies ID_VENDOR_FROM_DATABASE=Loud Technologies

View File

@ -172,7 +172,7 @@
for the first time it is possible to configure the root user's password to be <literal>systemd</literal> for the first time it is possible to configure the root user's password to be <literal>systemd</literal>
like this:</para> like this:</para>
<para><programlisting># systemd-nspawn --image=… --set-credential=passwd.hashed-password.root:'$y$j9T$yAuRJu1o5HioZAGDYPU5d.$F64ni6J2y2nNQve90M/p0ZP0ECP/qqzipNyaY9fjGpC' …</programlisting></para> <para><programlisting># systemd-nspawn --image=… --set-credential=password.hashed-password.root:'$y$j9T$yAuRJu1o5HioZAGDYPU5d.$F64ni6J2y2nNQve90M/p0ZP0ECP/qqzipNyaY9fjGpC' …</programlisting></para>
<para>Note again that the data specified in these credentials is consulted only when creating an account <para>Note again that the data specified in these credentials is consulted only when creating an account
for the first time, it may not be used for changing the password or shell of an account that already for the first time, it may not be used for changing the password or shell of an account that already

View File

@ -160,24 +160,6 @@ bool cg_freezer_supported(void) {
return supported; return supported;
} }
bool cg_kill_supported(void) {
static thread_local int supported = -1;
if (supported >= 0)
return supported;
if (cg_all_unified() <= 0)
supported = false;
else if (access("/sys/fs/cgroup/init.scope/cgroup.kill", F_OK) < 0) {
if (errno != ENOENT)
log_debug_errno(errno, "Failed to check if cgroup.kill is available, assuming not: %m");
supported = false;
} else
supported = true;
return supported;
}
int cg_enumerate_subgroups(const char *controller, const char *path, DIR **_d) { int cg_enumerate_subgroups(const char *controller, const char *path, DIR **_d) {
_cleanup_free_ char *fs = NULL; _cleanup_free_ char *fs = NULL;
int r; int r;
@ -376,29 +358,6 @@ int cg_kill(
return cg_kill_items(controller, path, sig, flags, s, log_kill, userdata, "cgroup.threads"); return cg_kill_items(controller, path, sig, flags, s, log_kill, userdata, "cgroup.threads");
} }
int cg_kill_kernel_sigkill(const char *controller, const char *path) {
/* Kills the cgroup at `path` directly by writing to its cgroup.kill file.
* This sends SIGKILL to all processes in the cgroup and has the advantage of
* being completely atomic, unlike cg_kill_items. */
int r;
_cleanup_free_ char *killfile = NULL;
assert(path);
if (!cg_kill_supported())
return -EOPNOTSUPP;
r = cg_get_path(controller, path, "cgroup.kill", &killfile);
if (r < 0)
return r;
r = write_string_file(killfile, "1", WRITE_STRING_FILE_DISABLE_BUFFER);
if (r < 0)
return r;
return 0;
}
int cg_kill_recursive( int cg_kill_recursive(
const char *controller, const char *controller,
const char *path, const char *path,
@ -416,13 +375,6 @@ int cg_kill_recursive(
assert(path); assert(path);
assert(sig >= 0); assert(sig >= 0);
if (sig == SIGKILL && cg_kill_supported() &&
!FLAGS_SET(flags, CGROUP_IGNORE_SELF) && !s && !log_kill) {
/* ignore CGROUP_SIGCONT, since this is a no-op alongside SIGKILL */
ret = cg_kill_kernel_sigkill(controller, path);
if (ret < 0)
return ret;
} else {
if (!s) { if (!s) {
s = allocated_set = set_new(NULL); s = allocated_set = set_new(NULL);
if (!s) if (!s)
@ -453,9 +405,8 @@ int cg_kill_recursive(
} }
if (ret >= 0 && r < 0) if (ret >= 0 && r < 0)
ret = r; ret = r;
}
if (FLAGS_SET(flags, CGROUP_REMOVE)) { if (flags & CGROUP_REMOVE) {
r = cg_rmdir(controller, path); r = cg_rmdir(controller, path);
if (r < 0 && ret >= 0 && !IN_SET(r, -ENOENT, -EBUSY)) if (r < 0 && ret >= 0 && !IN_SET(r, -ENOENT, -EBUSY))
return r; return r;

View File

@ -172,7 +172,6 @@ typedef enum CGroupFlags {
typedef int (*cg_kill_log_func_t)(pid_t pid, int sig, void *userdata); typedef int (*cg_kill_log_func_t)(pid_t pid, int sig, void *userdata);
int cg_kill(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s, cg_kill_log_func_t kill_log, void *userdata); int cg_kill(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s, cg_kill_log_func_t kill_log, void *userdata);
int cg_kill_kernel_sigkill(const char *controller, const char *path);
int cg_kill_recursive(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s, cg_kill_log_func_t kill_log, void *userdata); int cg_kill_recursive(const char *controller, const char *path, int sig, CGroupFlags flags, Set *s, cg_kill_log_func_t kill_log, void *userdata);
int cg_split_spec(const char *spec, char **ret_controller, char **ret_path); int cg_split_spec(const char *spec, char **ret_controller, char **ret_path);
@ -273,7 +272,6 @@ int cg_kernel_controllers(Set **controllers);
bool cg_ns_supported(void); bool cg_ns_supported(void);
bool cg_freezer_supported(void); bool cg_freezer_supported(void);
bool cg_kill_supported(void);
int cg_all_unified(void); int cg_all_unified(void);
int cg_hybrid_unified(void); int cg_hybrid_unified(void);

View File

@ -245,7 +245,7 @@ EFI_STATUS process_random_seed(EFI_FILE *root_dir, RandomSeedMode mode) {
err = uefi_call_wrapper(root_dir->Open, 5, root_dir, &handle, (CHAR16*) L"\\loader\\random-seed", EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE, 0ULL); err = uefi_call_wrapper(root_dir->Open, 5, root_dir, &handle, (CHAR16*) L"\\loader\\random-seed", EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE, 0ULL);
if (EFI_ERROR(err)) { if (EFI_ERROR(err)) {
if (err != EFI_NOT_FOUND && err != EFI_WRITE_PROTECTED) if (err != EFI_NOT_FOUND)
Print(L"Failed to open random seed file: %r\n", err); Print(L"Failed to open random seed file: %r\n", err);
return err; return err;
} }

View File

@ -765,9 +765,7 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r
assert(link); assert(link);
assert(rt); assert(rt);
/* Do not use clock_boottime_or_monotonic() here, as the kernel internally manages cstamp and r = sd_ndisc_router_get_timestamp(rt, clock_boottime_or_monotonic(), &time_now);
* tstamp with jiffies, and it is not increased while the system is suspended. */
r = sd_ndisc_router_get_timestamp(rt, CLOCK_MONOTONIC, &time_now);
if (r < 0) if (r < 0)
return log_link_error_errno(link, r, "Failed to get RA timestamp: %m"); return log_link_error_errno(link, r, "Failed to get RA timestamp: %m");

View File

@ -11,7 +11,6 @@ TEST_NO_NSPAWN=1
test_append_files() { test_append_files() {
( (
local workspace="${1:?}" local workspace="${1:?}"
dracut_install busybox
if selinuxenabled >/dev/null; then if selinuxenabled >/dev/null; then
dracut_install selinuxenabled dracut_install selinuxenabled

View File

@ -126,6 +126,7 @@ BASICTOOLS=(
base64 base64
basename basename
bash bash
busybox
capsh capsh
cat cat
chmod chmod
@ -228,7 +229,7 @@ is_built_with_asan() {
# Borrowed from https://github.com/google/oss-fuzz/blob/cd9acd02f9d3f6e80011cc1e9549be526ce5f270/infra/base-images/base-runner/bad_build_check#L182 # Borrowed from https://github.com/google/oss-fuzz/blob/cd9acd02f9d3f6e80011cc1e9549be526ce5f270/infra/base-images/base-runner/bad_build_check#L182
local _asan_calls local _asan_calls
_asan_calls="$(objdump -dC "$SYSTEMD_JOURNALD" | grep -E "(callq?|brasl?|bl)\s.+__asan" -c)" _asan_calls="$(objdump -dC "$SYSTEMD_JOURNALD" | grep -E "(callq?|brasl?)\s+[^ <]+\s+<__asan" -c)"
if ((_asan_calls < 1000)); then if ((_asan_calls < 1000)); then
return 1 return 1
else else
@ -1680,11 +1681,6 @@ inst_libs() {
while read -r line; do while read -r line; do
[[ "$line" = 'not a dynamic executable' ]] && break [[ "$line" = 'not a dynamic executable' ]] && break
# Skip a harmless error when running the tests on a system with a significantly
# older systemd version (ldd tries to resolve the unprefixed RPATH for libsystemd.so.0,
# which is in this case older than the already installed libsystemd.so.0 in $initdir).
# The issue is triggered by installing test dependencies in install_missing_libraries().
[[ "$line" =~ libsystemd.so.*:\ version\ .*\ not\ found ]] && continue
if [[ "$line" =~ $so_regex ]]; then if [[ "$line" =~ $so_regex ]]; then
file="${BASH_REMATCH[1]}" file="${BASH_REMATCH[1]}"