Bug 2383682
| Summary: | SELinux is preventing (o-bridge) from 'write' accesses on the file lastlog2.db. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matt Fagnani <matt.fagnani> | ||||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | dwalsh, lvrabec, matt.fagnani, mmalik, omosnacek, pkoncity, vmojzis, zpytela | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:f10d4c6a51ea80e0e78b78ccd478d3f13805f9f464fc3282f7666e826d8ed97a;VARIANT_ID=kde; | ||||||||
| Fixed In Version: | Doc Type: | --- | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2025-07-28 08:23:30 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 2098370 [details]
File: os_info
Created attachment 2098371 [details]
File: description
*** This bug has been marked as a duplicate of bug 2382799 *** |
Description of problem: I booted the Fedora Rawhide KDE live image Fedora-KDE-Desktop-Live-Rawhide-20250725.n.0.x86_64.iso in a QEMU/KVM VM in GNOME Boxes in a Fedora 42 KDE installation. I started Konsole. I ran sudo dnf install nautilus in Konsole. An SELinux denial notification was shown. systemd-stdio-bridge was denied writing to /var/lib/lastlog/lastlog2.db as the update was running. This denial appeared to cause an error "(o-bridge)[3444]: pam_lastlog2(login:session): Delete statement did not return SQLITE_DONE: 8" in the journal. Jul 27 07:30:15 systemd[1]: Reloaded user - User Manager for UID 0. Jul 27 07:30:15 systemd[1]: Reloaded user - User Manager for UID 1000. Jul 27 07:30:16 systemd[3126]: Queuing reload/restart jobs for marked units… Jul 27 07:30:16 systemd[1]: Started run-p3443-i3444.service - [systemd-run] systemd-stdio-bridge "-punix:path=\${XDG_RUNTIME_DIR}/bus". Jul 27 07:30:16 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=run-p3443-i3444 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Jul 27 07:30:16 audit[3444]: USER_ACCT pid=3444 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='op=PAM:accounting grantors=pam_unix acct="liveuser" exe="/usr/lib/systemd/systemd-executor" hostname=? addr=? terminal=? res=success' Jul 27 07:30:16 audit[3444]: CRED_ACQ pid=3444 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='op=PAM:setcred grantors=pam_env,pam_unix acct="liveuser" exe="/usr/lib/systemd/systemd-executor" hostname=? addr=? terminal=? res=success' Jul 27 07:30:16 audit[3444]: USER_ROLE_CHANGE pid=3444 uid=0 auid=1000 ses=5 subj=system_u:system_r:init_t:s0 msg='op=pam_selinux default-context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 selected-context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 exe="/usr/lib/systemd/systemd-executor" hostname=? addr=? terminal=? res=success' Jul 27 07:30:16 systemd[1]: Started session-5.scope - Session 5 of User liveuser. Jul 27 07:30:16 (o-bridge)[3444]: pam_unix(login:session): session opened for user liveuser(uid=1000) by liveuser(uid=0) Jul 27 07:30:16 audit[3444]: AVC avc: denied { write } for pid=3444 comm="(o-bridge)" name="lastlog2.db" dev="overlay" ino=2601 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file permissive=0 Jul 27 07:30:16 audit[3444]: USER_START pid=3444 uid=0 auid=1000 ses=5 subj=system_u:system_r:init_t:s0 msg='op=PAM:session_open grantors=pam_selinux,pam_loginuid,pam_selinux,pam_namespace,pam_keyinit,pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask acct="liveuser" exe="/usr/lib/systemd/systemd-executor" hostname=? addr=? terminal=? res=success' Jul 27 07:30:16 (o-bridge)[3444]: pam_lastlog2(login:session): Delete statement did not return SQLITE_DONE: 8 Jul 27 07:30:16 systemd[1806]: Queuing reload/restart jobs for marked units… Jul 27 07:30:16 systemd[1]: run-p3443-i3444.service: Deactivated successfully. SELinux is preventing (o-bridge) from 'write' accesses on the file lastlog2.db. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that (o-bridge) should be allowed write access on the lastlog2.db file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c '(o-bridge)' --raw | audit2allow -M my-obridge # semodule -X 300 -i my-obridge.pp Additional Information: Source Context system_u:system_r:init_t:s0 Target Context system_u:object_r:xdm_var_lib_t:s0 Target Objects lastlog2.db [ file ] Source (o-bridge) Source Path (o-bridge) Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-42.2-1.fc43.noarch Local Policy RPM selinux-policy-targeted-42.2-1.fc43.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.16.0-0.rc7.60.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 23 09:31:05 UTC 2025 x86_64 Alert Count 1 First Seen 2025-07-27 07:30:16 UTC Last Seen 2025-07-27 07:30:16 UTC Local ID 60c52370-b03f-4aa4-91d4-4fddf9089853 Raw Audit Messages type=AVC msg=audit(1753601416.596:379): avc: denied { write } for pid=3444 comm="(o-bridge)" name="lastlog2.db" dev="overlay" ino=2601 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file permissive=0 Hash: (o-bridge),init_t,xdm_var_lib_t,file,write Version-Release number of selected component: selinux-policy-targeted-42.2-1.fc43.noarch Additional info: reporter: libreport-2.17.15 kernel: 6.16.0-0.rc7.60.fc43.x86_64 type: libreport hashmarkername: setroubleshoot component: selinux-policy package: selinux-policy-targeted-42.2-1.fc43.noarch reason: SELinux is preventing (o-bridge) from 'write' accesses on the file lastlog2.db. component: selinux-policy