1
0
mirror of https://github.com/systemd/systemd synced 2026-03-18 11:04:46 +01:00

Compare commits

..

No commits in common. "b6585c811a82633c082182145ca5d5132a8228ff" and "e901e256d917c64b4ab8467825cc9c17723e87d6" have entirely different histories.

6 changed files with 10 additions and 12 deletions

View File

@ -1302,9 +1302,9 @@ static EFI_STATUS run(EFI_HANDLE image) {
/* Combine the initrds into one */
_cleanup_pages_ Pages initrd_pages = {};
struct iovec final_initrd = {};
struct iovec final_initrd;
if (n_all_initrds > 1) {
/* If there is more then 1 initrd we need to combine them */
/* There will always be a base initrd, if this counter is higher, we need to combine them */
err = combine_initrds(all_initrds, n_all_initrds, &initrd_pages, &final_initrd.iov_len);
if (err != EFI_SUCCESS)
return err;
@ -1313,7 +1313,7 @@ static EFI_STATUS run(EFI_HANDLE image) {
/* Given these might be large let's free them explicitly before we pass control to Linux */
initrds_free(&initrds);
} else if (n_all_initrds == 1)
} else
final_initrd = all_initrds[0];
struct iovec kernel = IOVEC_MAKE(

View File

@ -536,13 +536,13 @@ static int create_disk(
}
fprintf(f,
"ExecStartPost=" SYSTEMD_MAKEFS_PATH " '%s' '/dev/mapper/%s'\n",
"ExecStartPost=" LIBEXECDIR "/systemd-makefs '%s' '/dev/mapper/%s'\n",
tmp_fstype_escaped ?: "ext4", name_escaped);
}
if (swap)
fprintf(f,
"ExecStartPost=" SYSTEMD_MAKEFS_PATH " swap '/dev/mapper/%s'\n",
"ExecStartPost=" LIBEXECDIR "/systemd-makefs swap '/dev/mapper/%s'\n",
name_escaped);
r = fflush_and_check(f);

View File

@ -104,8 +104,8 @@ static int create_disk(
"Type=oneshot\n"
"RemainAfterExit=yes\n"
"TimeoutSec=infinity\n"
"ExecStart=" SYSTEMD_INTEGRITYSETUP_PATH " attach '%s' '%s' '%s' '%s'\n"
"ExecStop=" SYSTEMD_INTEGRITYSETUP_PATH " detach '%s'\n",
"ExecStart=" LIBEXECDIR "/systemd-integritysetup attach '%s' '%s' '%s' '%s'\n"
"ExecStop=" LIBEXECDIR "/systemd-integritysetup detach '%s'\n",
name_escaped, device, empty_to_dash(key_file_escaped), empty_to_dash(options),
name_escaped);

View File

@ -2,7 +2,6 @@
#include "vmlinux.h"
#include <errno.h>
#include <bpf/bpf_helpers.h>
#include "sysctl-write-event.h"
@ -105,7 +104,7 @@ int sysctl_monitor(struct bpf_sysctl *ctx) {
return 1;
r = bpf_get_current_comm(we.comm, sizeof(we.comm));
if (r < 0 && r != -EINVAL) { /* -EINVAL: the process is already vanished */
if (r < 0) {
we.errorcode = r;
goto send_event;
}

View File

@ -76,13 +76,13 @@ static int sysctl_event_handler(void *ctx, void *data, size_t data_sz) {
log_struct(LOG_WARNING,
LOG_MESSAGE_ID(SD_MESSAGE_SYSCTL_CHANGED_STR),
LOG_ITEM("OBJECT_PID=" PID_FMT, we->pid),
LOG_ITEM("OBJECT_COMM=%s", empty_to_na(we->comm)),
LOG_ITEM("OBJECT_COMM=%s", we->comm),
LOG_ITEM("SYSCTL=%s", path),
LOG_ITEM("OLDVALUE=%s", we->current),
LOG_ITEM("NEWVALUE=%s", we->newvalue),
LOG_ITEM("OURVALUE=%s", value),
LOG_MESSAGE("Foreign process '%s[" PID_FMT "]' changed sysctl '%s' from '%s' to '%s', conflicting with our setting to '%s'.",
empty_to_na(we->comm), we->pid, path, we->current, we->newvalue, value));
we->comm, we->pid, path, we->current, we->newvalue, value));
return 0;
}

View File

@ -14,7 +14,6 @@ DefaultDependencies=no
Conflicts=shutdown.target
After=tpm2.target
Before=sysinit.target shutdown.target
RequiresMountsFor=/var/lib/systemd/nvpcr
ConditionPathExists=!/etc/initrd-release
ConditionSecurity=measured-uki