| Summary: | SELinux is preventing abrt-action-sav from read, write access on the file /var/lib/rpm/.dbenv.lock. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | hlinden <harald.linden> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:5414920d676b1e217292d5504e28729997c28d651b702e83a1a5e961a3575f67;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-25 12:16:09 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Please run: # restorecon -Rv / To fix your issue |
Description of problem: Upgraded vom Fedora 24 to 25, then logged in using Cinnamon Desktop. SELinux is preventing abrt-action-sav from read, write access on the file /var/lib/rpm/.dbenv.lock. ***** Plugin restorecon (94.8 confidence) suggests ************************ If sie die Kennzeichnung korrigieren möchten. /var/lib/rpm/.dbenv.lock Standard-Kennzeichnung sollte rpm_var_lib_t sein. Then sie können restorecon ausführen. Do # /sbin/restorecon -v /var/lib/rpm/.dbenv.lock ***** Plugin catchall_labels (5.21 confidence) suggests ******************* If you want to allow abrt-action-sav to have read write access on the .dbenv.lock file Then sie müssen das Label auf /var/lib/rpm/.dbenv.lock ändern Do # semanage fcontext -a -t FILE_TYPE '/var/lib/rpm/.dbenv.lock' wobei FILE_TYPE einer der folgenen Werte ist: abrt_etc_t, abrt_tmp_t, abrt_upload_watch_tmp_t, abrt_var_cache_t, abrt_var_log_t, abrt_var_run_t, afs_cache_t, initrc_tmp_t, mock_var_lib_t, postfix_postdrop_t, puppet_tmp_t, rpm_log_t, rpm_var_cache_t, rpm_var_run_t, sysfs_t, user_cron_spool_t, user_tmp_t. Führen Sie danach Folgendes aus: restorecon -v '/var/lib/rpm/.dbenv.lock' ***** Plugin catchall (1.44 confidence) suggests ************************** If sie denken, dass es abrt-action-sav standardmäßig erlaubt sein sollte, read write Zugriff auf .dbenv.lock file zu erhalten. Then sie sollten dies als Fehler melden. Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. Do allow this access for now by executing: # ausearch -c 'abrt-action-sav' --raw | audit2allow -M my-abrtactionsav # semodule -X 300 -i my-abrtactionsav.pp Additional Information: Source Context system_u:system_r:abrt_t:s0-s0:c0.c1023 Target Context system_u:object_r:unlabeled_t:s0 Target Objects /var/lib/rpm/.dbenv.lock [ file ] Source abrt-action-sav Source Path abrt-action-sav Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-224.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue Nov 15 18:10:06 UTC 2016 x86_64 x86_64 Alert Count 1 First Seen 2016-11-24 12:46:43 CET Last Seen 2016-11-24 12:46:43 CET Local ID 1b74d223-a693-4542-8ccd-450a32d25af3 Raw Audit Messages type=AVC msg=audit(1479988003.14:475): avc: denied { read write } for pid=8575 comm="abrt-action-sav" name=".dbenv.lock" dev="bcache0" ino=1311592 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1 Hash: abrt-action-sav,abrt_t,unlabeled_t,file,read,write Version-Release number of selected component: selinux-policy-3.13.1-224.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.8-300.fc25.x86_64 type: libreport