Additional info: libreport version: 2.0.16 kernel: 3.6.2-2.fc18.x86_64 description: :SELinux is preventing /usr/bin/abrt-action-save-package-data from 'write' accesses on the directory rpm. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that abrt-action-save-package-data should be allowed write access on the rpm directory 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: :# grep abrt-action-sav /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:abrt_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:mock_var_lib_t:s0 :Target Objects rpm [ dir ] :Source abrt-action-sav :Source Path /usr/bin/abrt-action-save-package-data :Port <Neznámé> :Host (removed) :Source RPM Packages abrt-2.0.16-1.fc18.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.11.1-36.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.2-2.fc18.x86_64 #1 SMP Wed Oct : 17 05:56:07 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-24 14:40:40 CEST :Last Seen 2012-10-24 14:40:40 CEST :Local ID eb4fe709-0872-4f69-88c5-d6a223f5b7ee : :Raw Audit Messages :type=AVC msg=audit(1351082440.946:681): avc: denied { write } for pid=25266 comm="abrt-action-sav" name="rpm" dev="dm-0" ino=312013 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=dir : : :type=SYSCALL msg=audit(1351082440.946:681): arch=x86_64 syscall=open success=no exit=EACCES a0=1ad1030 a1=c2 a2=1a4 a3=2d items=0 ppid=25265 pid=25266 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-action-sav exe=/usr/bin/abrt-action-save-package-data subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null) : :Hash: abrt-action-sav,abrt_t,mock_var_lib_t,dir,write : :audit2allow : :#============= abrt_t ============== :#!!!! The source type 'abrt_t' can write to a 'dir' of the following types: :# tmp_t, var_t, rpm_var_cache_t, abrt_var_cache_t, var_spool_t, sosreport_tmp_t, var_log_t, abrt_tmp_t, abrt_var_run_t, var_run_t, abrt_var_log_t, rpm_var_run_t : :allow abrt_t mock_var_lib_t:dir write; : :audit2allow -R : :#============= abrt_t ============== :#!!!! The source type 'abrt_t' can write to a 'dir' of the following types: :# tmp_t, var_t, rpm_var_cache_t, abrt_var_cache_t, var_spool_t, sosreport_tmp_t, var_log_t, abrt_tmp_t, abrt_var_run_t, var_run_t, abrt_var_log_t, rpm_var_run_t : :allow abrt_t mock_var_lib_t:dir write; :
Created attachment 633158 [details] File: type
Created attachment 633159 [details] File: hashmarkername
Is /var/lib/rpm mislabeled? restorecon -R -v /var/lib/rpm
The command is completely silent. And listing the directory labels prior and after, it doesn't look it would change anything.
# ls -dZ /var/lib/rpm will be propably ok. Are you able reproduce a crash?
$ sudo ls -dZ /var/lib/rpm drwxr-xr-x. root root system_u:object_r:rpm_var_lib_t:s0 /var/lib/rpm Well, I don't know how that happened :/
Any chance you were doing something with mock?
Very high chances :)
Strange that abrt would try to grab content from with a chroot? Also the kernel gave a path of /var/lib/rpm eventhough it is in another directory. I think we should dontaudit this since we really do not want abrt touch stuff in mock builds.
Running build in mock. Package: (null) OS Release: Fedora release 18 (Spherical Cow)
(In reply to comment #9) > Strange that abrt would try to grab content from with a chroot? Also the > kernel gave a path of /var/lib/rpm eventhough it is in another directory. > > I think we should dontaudit this since we really do not want abrt touch > stuff in mock builds. Actually the intention was to make ABRT able to detect crashes during the builds (e.g: scriptlet crashes) and in that case it tries to open the RPM from mock to get the pkg versions used in mock.
build in mock Package: (null) OS Release: Fedora release 18 (Spherical Cow)
Building packages in mock. Package: (null) OS Release: Fedora release 18 (Spherical Cow)
66f6289356525194bc599e687f664e0f119fd9a9 in git allows this.
Fixed in selinux-policy-3.11.1-88.fc18.noarch
selinux-policy-3.11.1-90.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-90.fc18
Package selinux-policy-3.11.1-90.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-90.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5742/selinux-policy-3.11.1-90.fc18 then log in and leave karma (feedback).
selinux-policy-3.11.1-90.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.