1
0
mirror of https://github.com/systemd/systemd synced 2026-03-20 03:54:45 +01:00

Compare commits

..

No commits in common. "9463b3b51cf9a0e7b5ee71e7a5f90b4a67587eb3" and "ceaa36c21e89aac1d9370b804ee74223bd96f943" have entirely different histories.

3 changed files with 12 additions and 13 deletions

View File

@ -12598,7 +12598,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<varname>ManagedOOMKills</varname>, <varname>ManagedOOMKills</varname>,
<varname>ExecReloadPost</varname>, and <varname>ExecReloadPost</varname>, and
<varname>ExecReloadPostEx</varname> were added in version 259.</para> <varname>ExecReloadPostEx</varname> were added in version 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Socket Unit Objects</title> <title>Socket Unit Objects</title>
@ -12667,7 +12666,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<para><varname>OOMKills</varname>, and <para><varname>OOMKills</varname>, and
<varname>UserNamespacePath</varname>, and <varname>UserNamespacePath</varname>, and
<varname>ManagedOOMKills</varname> were added in 259.</para> <varname>ManagedOOMKills</varname> were added in 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Mount Unit Objects</title> <title>Mount Unit Objects</title>
@ -12731,7 +12729,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<para><varname>UserNamespacePath</varname>, <para><varname>UserNamespacePath</varname>,
<varname>OOMKills</varname>, and <varname>OOMKills</varname>, and
<varname>ManagedOOMKills</varname> were added in 259.</para> <varname>ManagedOOMKills</varname> were added in 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Swap Unit Objects</title> <title>Swap Unit Objects</title>
@ -12793,7 +12790,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<para><varname>UserNamespacePath</varname>, <para><varname>UserNamespacePath</varname>,
<varname>OOMKills</varname>, and <varname>OOMKills</varname>, and
<varname>ManagedOOMKills</varname> were added in 259.</para> <varname>ManagedOOMKills</varname> were added in 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Slice Unit Objects</title> <title>Slice Unit Objects</title>
@ -12826,7 +12822,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<function>KillSubgroup()</function> were added in version 258.</para> <function>KillSubgroup()</function> were added in version 258.</para>
<para><varname>OOMKills</varname>, and <para><varname>OOMKills</varname>, and
<varname>ManagedOOMKills</varname> were added in 259.</para> <varname>ManagedOOMKills</varname> were added in 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Scope Unit Objects</title> <title>Scope Unit Objects</title>
@ -12857,7 +12852,6 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \
<function>KillSubgroup()</function> were added in version 258.</para> <function>KillSubgroup()</function> were added in version 258.</para>
<para><varname>OOMKills</varname>, and <para><varname>OOMKills</varname>, and
<varname>ManagedOOMKills</varname> were added in 259.</para> <varname>ManagedOOMKills</varname> were added in 259.</para>
<para><varname>BindNetworkInterface</varname> was added in version 260.</para>
</refsect2> </refsect2>
<refsect2> <refsect2>
<title>Job Objects</title> <title>Job Objects</title>

View File

@ -965,14 +965,12 @@ static int are_we_installed(const char *esp_path) {
#if HAVE_OPENSSL #if HAVE_OPENSSL
static int load_secure_boot_auto_enroll( static int load_secure_boot_auto_enroll(
X509 **ret_certificate, X509 **ret_certificate,
EVP_PKEY **ret_private_key, EVP_PKEY **ret_private_key) {
OpenSSLAskPasswordUI **ret_ui) {
int r; int r;
assert(ret_certificate); assert(ret_certificate);
assert(ret_private_key); assert(ret_private_key);
assert(ret_ui);
if (!arg_secure_boot_auto_enroll) { if (!arg_secure_boot_auto_enroll) {
*ret_certificate = NULL; *ret_certificate = NULL;
@ -1001,6 +999,7 @@ static int load_secure_boot_auto_enroll(
return log_error_errno(r, "Failed to parse private key path %s: %m", arg_private_key); return log_error_errno(r, "Failed to parse private key path %s: %m", arg_private_key);
} }
_cleanup_(EVP_PKEY_freep) EVP_PKEY *private_key = NULL;
r = openssl_load_private_key( r = openssl_load_private_key(
arg_private_key_source_type, arg_private_key_source_type,
arg_private_key_source, arg_private_key_source,
@ -1013,12 +1012,13 @@ static int load_secure_boot_auto_enroll(
.until = USEC_INFINITY, .until = USEC_INFINITY,
.hup_fd = -EBADF, .hup_fd = -EBADF,
}, },
ret_private_key, &private_key,
ret_ui); /* ret_user_interface= */ NULL);
if (r < 0) if (r < 0)
return log_error_errno(r, "Failed to load private key from %s: %m", arg_private_key); return log_error_errno(r, "Failed to load private key from %s: %m", arg_private_key);
*ret_certificate = TAKE_PTR(certificate); *ret_certificate = TAKE_PTR(certificate);
*ret_private_key = TAKE_PTR(private_key);
return 0; return 0;
} }
@ -1039,10 +1039,9 @@ int verb_install(int argc, char *argv[], void *userdata) {
graceful = arg_graceful() == ARG_GRACEFUL_FORCE || (!install && arg_graceful() != ARG_GRACEFUL_NO); graceful = arg_graceful() == ARG_GRACEFUL_FORCE || (!install && arg_graceful() != ARG_GRACEFUL_NO);
#if HAVE_OPENSSL #if HAVE_OPENSSL
_cleanup_(openssl_ask_password_ui_freep) OpenSSLAskPasswordUI *ui = NULL;
_cleanup_(EVP_PKEY_freep) EVP_PKEY *private_key = NULL; _cleanup_(EVP_PKEY_freep) EVP_PKEY *private_key = NULL;
_cleanup_(X509_freep) X509 *certificate = NULL; _cleanup_(X509_freep) X509 *certificate = NULL;
r = load_secure_boot_auto_enroll(&certificate, &private_key, &ui); r = load_secure_boot_auto_enroll(&certificate, &private_key);
if (r < 0) if (r < 0)
return r; return r;
#endif #endif

View File

@ -751,6 +751,7 @@ org.freedesktop.systemd1.Mount.AmbientCapabilities
org.freedesktop.systemd1.Mount.AppArmorProfile org.freedesktop.systemd1.Mount.AppArmorProfile
org.freedesktop.systemd1.Mount.AttachProcesses() org.freedesktop.systemd1.Mount.AttachProcesses()
org.freedesktop.systemd1.Mount.BPFProgram org.freedesktop.systemd1.Mount.BPFProgram
org.freedesktop.systemd1.Mount.BindNetworkInterface
org.freedesktop.systemd1.Mount.BindPaths org.freedesktop.systemd1.Mount.BindPaths
org.freedesktop.systemd1.Mount.BindReadOnlyPaths org.freedesktop.systemd1.Mount.BindReadOnlyPaths
org.freedesktop.systemd1.Mount.BlockIOAccounting org.freedesktop.systemd1.Mount.BlockIOAccounting
@ -1018,6 +1019,7 @@ org.freedesktop.systemd1.Scope.AllowedCPUs
org.freedesktop.systemd1.Scope.AllowedMemoryNodes org.freedesktop.systemd1.Scope.AllowedMemoryNodes
org.freedesktop.systemd1.Scope.AttachProcesses() org.freedesktop.systemd1.Scope.AttachProcesses()
org.freedesktop.systemd1.Scope.BPFProgram org.freedesktop.systemd1.Scope.BPFProgram
org.freedesktop.systemd1.Scope.BindNetworkInterface
org.freedesktop.systemd1.Scope.BlockIOAccounting org.freedesktop.systemd1.Scope.BlockIOAccounting
org.freedesktop.systemd1.Scope.BlockIODeviceWeight org.freedesktop.systemd1.Scope.BlockIODeviceWeight
org.freedesktop.systemd1.Scope.BlockIOReadBandwidth org.freedesktop.systemd1.Scope.BlockIOReadBandwidth
@ -1107,6 +1109,7 @@ org.freedesktop.systemd1.Service.AppArmorProfile
org.freedesktop.systemd1.Service.AttachProcesses() org.freedesktop.systemd1.Service.AttachProcesses()
org.freedesktop.systemd1.Service.BPFProgram org.freedesktop.systemd1.Service.BPFProgram
org.freedesktop.systemd1.Service.BindMount() org.freedesktop.systemd1.Service.BindMount()
org.freedesktop.systemd1.Service.BindNetworkInterface
org.freedesktop.systemd1.Service.BindPaths org.freedesktop.systemd1.Service.BindPaths
org.freedesktop.systemd1.Service.BindReadOnlyPaths org.freedesktop.systemd1.Service.BindReadOnlyPaths
org.freedesktop.systemd1.Service.BlockIOAccounting org.freedesktop.systemd1.Service.BlockIOAccounting
@ -1409,6 +1412,7 @@ org.freedesktop.systemd1.Slice.AllowedCPUs
org.freedesktop.systemd1.Slice.AllowedMemoryNodes org.freedesktop.systemd1.Slice.AllowedMemoryNodes
org.freedesktop.systemd1.Slice.AttachProcesses() org.freedesktop.systemd1.Slice.AttachProcesses()
org.freedesktop.systemd1.Slice.BPFProgram org.freedesktop.systemd1.Slice.BPFProgram
org.freedesktop.systemd1.Slice.BindNetworkInterface
org.freedesktop.systemd1.Slice.BlockIOAccounting org.freedesktop.systemd1.Slice.BlockIOAccounting
org.freedesktop.systemd1.Slice.BlockIODeviceWeight org.freedesktop.systemd1.Slice.BlockIODeviceWeight
org.freedesktop.systemd1.Slice.BlockIOReadBandwidth org.freedesktop.systemd1.Slice.BlockIOReadBandwidth
@ -1487,6 +1491,7 @@ org.freedesktop.systemd1.Socket.AttachProcesses()
org.freedesktop.systemd1.Socket.BPFProgram org.freedesktop.systemd1.Socket.BPFProgram
org.freedesktop.systemd1.Socket.Backlog org.freedesktop.systemd1.Socket.Backlog
org.freedesktop.systemd1.Socket.BindIPv6Only org.freedesktop.systemd1.Socket.BindIPv6Only
org.freedesktop.systemd1.Socket.BindNetworkInterface
org.freedesktop.systemd1.Socket.BindPaths org.freedesktop.systemd1.Socket.BindPaths
org.freedesktop.systemd1.Socket.BindReadOnlyPaths org.freedesktop.systemd1.Socket.BindReadOnlyPaths
org.freedesktop.systemd1.Socket.BindToDevice org.freedesktop.systemd1.Socket.BindToDevice
@ -1786,6 +1791,7 @@ org.freedesktop.systemd1.Swap.AmbientCapabilities
org.freedesktop.systemd1.Swap.AppArmorProfile org.freedesktop.systemd1.Swap.AppArmorProfile
org.freedesktop.systemd1.Swap.AttachProcesses() org.freedesktop.systemd1.Swap.AttachProcesses()
org.freedesktop.systemd1.Swap.BPFProgram org.freedesktop.systemd1.Swap.BPFProgram
org.freedesktop.systemd1.Swap.BindNetworkInterface
org.freedesktop.systemd1.Swap.BindPaths org.freedesktop.systemd1.Swap.BindPaths
org.freedesktop.systemd1.Swap.BindReadOnlyPaths org.freedesktop.systemd1.Swap.BindReadOnlyPaths
org.freedesktop.systemd1.Swap.BlockIOAccounting org.freedesktop.systemd1.Swap.BlockIOAccounting