Bug 872565 - SELinux is preventing /usr/bin/rm from 'remove_name' accesses on the directory pm-powersave.lock.
Summary: SELinux is preventing /usr/bin/rm from 'remove_name' accesses on the director...
Keywords:
Status: CLOSED DUPLICATE of bug 872568
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:446fba258e3f095994130f04ac8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-02 13:03 UTC by Kamil Páral
Modified: 2012-11-05 10:50 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-05 10:50:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-02 13:03 UTC, Kamil Páral
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-02 13:03 UTC, Kamil Páral
no flags Details

Description Kamil Páral 2012-11-02 13:03:08 UTC
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;
:

Comment 1 Kamil Páral 2012-11-02 13:03:14 UTC
Created attachment 637071 [details]
File: type

Comment 2 Kamil Páral 2012-11-02 13:03:16 UTC
Created attachment 637072 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-05 10:50:37 UTC

*** This bug has been marked as a duplicate of bug 872568 ***


Note You need to log in before you can comment on or make changes to this bug.