commit:     8072c639ff1c84e0ece6be0c375abcb08aef9762
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed May 17 20:43:42 2023 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed May 17 20:44:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8072c639

sys-auth/elogind: fix musl selinux patch

Bug: https://bugs.gentoo.org/906643

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 sys-auth/elogind/files/elogind-246.10-musl-selinux.patch | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-auth/elogind/files/elogind-246.10-musl-selinux.patch 
b/sys-auth/elogind/files/elogind-246.10-musl-selinux.patch
index 433184edd102..c36861b983e2 100644
--- a/sys-auth/elogind/files/elogind-246.10-musl-selinux.patch
+++ b/sys-auth/elogind/files/elogind-246.10-musl-selinux.patch
@@ -72,7 +72,7 @@ not otherwise.
          before_timestamp = now(CLOCK_MONOTONIC);
  
          label_hnd = selabel_open(SELABEL_CTX_FILE, NULL, 0);
-@@ -95,14 +106,16 @@ int mac_selinux_init(void) {
+@@ -95,14 +107,17 @@ int mac_selinux_init(void) {
                  return log_enforcing_errno(errno, "Failed to initialize 
SELinux labeling handle: %m");
  
          after_timestamp = now(CLOCK_MONOTONIC);
@@ -91,6 +91,7 @@ not otherwise.
 +#else
 +        log_debug("Successfully loaded SELinux database in %s.",
 +                  format_timespan(timespan, sizeof(timespan), after_timestamp 
- before_timestamp, 0));
++#endif
  #endif
          return 0;
  }

Reply via email to