Bug 1081609 - spice-vdagent needs to be able to read /proc/$pid/cgroup
Summary: spice-vdagent needs to be able to read /proc/$pid/cgroup
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1060329
TreeView+ depends on / blocked
 
Reported: 2014-03-27 16:54 UTC by Christophe Fergeau
Modified: 2014-03-28 08:47 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-28 08:47:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christophe Fergeau 2014-03-27 16:54:59 UTC
Once bug #1060329 is fixed, spice-vdagent will be automatically started when gdm greeter is started.
However, this also triggers a SELinux warnings when spice-vdagentd (different process from spice-vdagent) calls sd_pid_get_session($pidof(spice-vdagent)). This calls tries to parse (open/read) /proc/$(pidof spice-vdagent)/cgroup which is not allowed by the selinux policy:

type=AVC msg=audit(1395923290.618:35805): avc:  denied  { search } for  pid=652 comm="spice-vdagentd" name="27399" dev="proc" ino=1600740 scontext=system_u:system_r:vdagent_t:s0 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=dir
type=SYSCALL msg=audit(1395923290.618:35805): arch=c000003e syscall=2 success=no exit=-13 a0=7fff98cda960 a1=80000 a2=1b6 a3=2 items=0 ppid=1 pid=652 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="spice-vdagentd" exe="/usr/sbin/spice-vdagentd" subj=system_u:system_r:vdagent_t:s0 key=(null)

Comment 1 Miroslav Grepl 2014-03-28 08:47:47 UTC
commit 1abc12555f8f7f975c13d14de9279c1e8806a7a7
Author: Miroslav Grepl <mgrepl>
Date:   Fri Mar 28 09:46:42 2014 +0100

    Allow vdagent to read xdm state


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