<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>59967</bug_id>
          
          <creation_ts>2026-07-27 06:49:53 +0300</creation_ts>
          <short_desc>systemd-update-utmp.service fails</short_desc>
          <delta_ts>2026-07-30 10:38:07 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>systemd</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>arseny</cc>
    
    <cc>egori</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>291763</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-07-27 06:49:53 +0300</bug_when>
    <thetext>Кусочек логов (journalctl -u systemd-update-utmp.service):

Jul 26 15:15:42 sao systemd[1]: Starting systemd-update-utmp.service - Record System Boot/Shutdown in UTMP...
Jul 26 15:15:42 sao systemd-update-utmp[1054]: Failed to send audit message: Invalid argument
Jul 26 15:15:42 sao systemd[1]: systemd-update-utmp.service: Main process exited, code=exited, status=1/FAILURE
Jul 26 15:15:42 sao systemd[1]: systemd-update-utmp.service: Failed with result &apos;exit-code&apos;.
Jul 26 15:15:42 sao systemd[1]: Failed to start systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291764</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-07-27 06:52:46 +0300</bug_when>
    <thetext>Нашёл https://github.com/systemd/systemd/issues/43143 и PR в работе: https://github.com/systemd/systemd/pull/43144

Действительно, падения systemd-update-utmp.service на этой системе начались после обновления, содержавшего libaudit1 4.2.

$ rpm -qa systemd  libaudit1
libaudit1-4.2-alt1.x86_64
systemd-259.7-alt1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291765</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2026-07-27 07:04:13 +0300</bug_when>
    <thetext>Действительно, после возвращения libaudit1 4.1.4-alt2[1] systemd-update-utmp.service стартует успешно.

[1] https://git.altlinux.org/tasks/archive/done/_413/423624/build/12000/x86_64/rpms/libaudit1-4.1.4-alt2.x86_64.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291818</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-07-27 17:47:16 +0300</bug_when>
    <thetext>возможно нужно пересобрать systemd с новым libaudit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291826</commentid>
    <comment_count>4</comment_count>
    <who name="Egor Ignatov">egori</who>
    <bug_when>2026-07-27 18:35:22 +0300</bug_when>
    <thetext>(In reply to Anton Farygin from comment #3)
&gt; возможно нужно пересобрать systemd с новым libaudit.

Вряд ли поможет, аудит 4.2 начал явно &quot;reject malformed caller values with EINVAL&quot;[1]. Нужно исправление в systemd.


[1] https://github.com/linux-audit/audit-userspace/commit/81c09ebb4b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>291999</commentid>
    <comment_count>5</comment_count>
    <who name="Egor Ignatov">egori</who>
    <bug_when>2026-07-30 10:03:21 +0300</bug_when>
    <thetext>(In reply to Egor Ignatov from comment #4)
&gt; (In reply to Anton Farygin from comment #3)
&gt; &gt; возможно нужно пересобрать systemd с новым libaudit.
&gt; 
&gt; Вряд ли поможет, аудит 4.2 начал явно &quot;reject malformed caller values with
&gt; EINVAL&quot;[1]. Нужно исправление в systemd.
&gt; 
&gt; 
&gt; [1] https://github.com/linux-audit/audit-userspace/commit/81c09ebb4b

Апстрим audit выпустил корректирующий релиз 4.2.1, в котором поменял поведение[1] с reject на truncate. Должно исправить ошибку без фикса в systemd.

[1] https://github.com/linux-audit/audit-userspace/commit/d7ea98263ebdb974b383a4057856a5ec339776fc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292000</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-07-30 10:38:07 +0300</bug_when>
    <thetext>audit-4.2.1-alt1 -&gt; sisyphus:

Thu Jul 30 2026 Egor Ignatov &lt;egori@altlinux&gt; 4.2.1-alt1
- New version 4.2.1 (closes: #59967).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>