Bug 872565
| Summary: | SELinux is preventing /usr/bin/rm from 'remove_name' accesses on the directory pm-powersave.lock. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> | ||||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 18 | CC: | dominick.grift, dwalsh, mgrepl | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:446fba258e3f095994130f04ac8abf9a9a35c1dadf4d431a7ad3e8aaa5e36e10 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-11-05 10:50:37 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 637071 [details]
File: type
Created attachment 637072 [details]
File: hashmarkername
*** This bug has been marked as a duplicate of bug 872568 *** |
Description of problem: This happened inside VM. I tried to suspend the VM from the host by running "virsh dompmsuspend --target mem" and then resume it. Afterwards this poped up. Additional info: libreport version: 2.0.14 kernel: 3.6.1-1.fc18.x86_64 description: :SELinux is preventing /usr/bin/rm from 'remove_name' accesses on the directory pm-powersave.lock. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that rm should be allowed remove_name access on the pm-powersave.lock 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 rm /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:virt_qemu_ga_t:s0 :Target Context system_u:object_r:devicekit_var_run_t:s0 :Target Objects pm-powersave.lock [ dir ] :Source rm :Source Path /usr/bin/rm :Port <Unknown> :Host (removed) :Source RPM Packages coreutils-8.17-5.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.1-1.fc18.x86_64 #1 SMP Mon Oct : 8 17:19:09 UTC 2012 x86_64 x86_64 :Alert Count 2 :First Seen 2012-11-02 08:57:41 EDT :Last Seen 2012-11-02 08:57:52 EDT :Local ID 3f3e5ee0-4261-4be9-8c6b-6d20750ca306 : :Raw Audit Messages :type=AVC msg=audit(1351861072.73:359): avc: denied { remove_name } for pid=1943 comm="rm" name="pm-powersave.lock" dev="tmpfs" ino=23351 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:devicekit_var_run_t:s0 tclass=dir : : :type=AVC msg=audit(1351861072.73:359): avc: denied { unlink } for pid=1943 comm="rm" name="pm-powersave.lock" dev="tmpfs" ino=23351 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:devicekit_var_run_t:s0 tclass=file : : :type=SYSCALL msg=audit(1351861072.73:359): arch=x86_64 syscall=unlinkat success=yes exit=0 a0=ffffffffffffff9c a1=1c7b1a0 a2=0 a3=7fffba3d2dd0 items=0 ppid=1920 pid=1943 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rm exe=/usr/bin/rm subj=system_u:system_r:virt_qemu_ga_t:s0 key=(null) : :Hash: rm,virt_qemu_ga_t,devicekit_var_run_t,dir,remove_name : :audit2allow : :#============= virt_qemu_ga_t ============== :allow virt_qemu_ga_t devicekit_var_run_t:dir remove_name; :allow virt_qemu_ga_t devicekit_var_run_t:file unlink; : :audit2allow -R : :#============= virt_qemu_ga_t ============== :allow virt_qemu_ga_t devicekit_var_run_t:dir remove_name; :allow virt_qemu_ga_t devicekit_var_run_t:file unlink; :