Red Hat Bugzilla – Bug 812829
systemd-logind multiseat related AVC denials
Last modified: 2012-06-22 09:42:02 EDT
Description of problem: While trying out multiseat functionality i encountered some avc denials: ---- time->Mon Apr 16 12:58:02 2012 type=SYSCALL msg=audit(1334573882.565:288): arch=c000003e syscall=2 success=yes exit=11 a0=1c10110 a1=800c2 a2=180 a3=13a3a72a65 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573882.565:288): avc: denied { read write open } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334573882.565:288): avc: denied { create } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334573882.565:288): avc: denied { add_name } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir type=AVC msg=audit(1334573882.565:288): avc: denied { write } for pid=680 comm="systemd-logind" name="rules.d" dev="dm-0" ino=131449 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir ---- time->Mon Apr 16 12:58:02 2012 type=SYSCALL msg=audit(1334573882.565:289): arch=c000003e syscall=5 success=yes exit=0 a0=b a1=7fffbd4cdf10 a2=7fffbd4cdf10 a3=238 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573882.565:289): avc: denied { getattr } for pid=680 comm="systemd-logind" path="/etc/udev/rules.d/.72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file ---- time->Mon Apr 16 12:58:02 2012 type=SYSCALL msg=audit(1334573882.565:290): arch=c000003e syscall=91 success=yes exit=0 a0=b a1=1a4 a2=fbad2484 a3=22 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573882.565:290): avc: denied { setattr } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file ---- time->Mon Apr 16 12:58:02 2012 type=SYSCALL msg=audit(1334573882.565:291): arch=c000003e syscall=82 success=yes exit=0 a0=1c10110 a1=1c11f40 a2=1c11360 a3=ffffffff items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573882.565:291): avc: denied { rename } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334573882.565:291): avc: denied { remove_name } for pid=680 comm="systemd-logind" name=".72-seat-drm-pci-0000_00_02_0.rulesMTEfCe" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir ---- time->Mon Apr 16 12:58:02 2012 type=SYSCALL msg=audit(1334573882.566:292): arch=c000003e syscall=2 success=yes exit=11 a0=1c12350 a1=80241 a2=1b6 a3=238 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573882.566:292): avc: denied { write } for pid=680 comm="systemd-logind" name="uevent" dev="sysfs" ino=15935 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file ---- time->Mon Apr 16 12:58:23 2012 type=SYSCALL msg=audit(1334573903.901:293): arch=c000003e syscall=82 success=yes exit=0 a0=1c10110 a1=1c08410 a2=1c11360 a3=ffffffff items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334573903.901:293): avc: denied { unlink } for pid=680 comm="systemd-logind" name="72-seat-drm-pci-0000_00_02_0.rules" dev="dm-0" ino=132956 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file ---- time->Mon Apr 16 13:00:41 2012 type=SYSCALL msg=audit(1334574041.868:294): arch=c000003e syscall=2 success=yes exit=11 a0=1c384a0 a1=80241 a2=1b6 a3=238 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334574041.868:294): avc: denied { write } for pid=680 comm="systemd-logind" name="uevent" dev="sysfs" ino=11490 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file ---- time->Mon Apr 16 13:01:04 2012 type=SYSCALL msg=audit(1334574064.088:302): arch=c000003e syscall=2 success=yes exit=11 a0=1c116e0 a1=800c2 a2=180 a3=2070dad263 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334574064.088:302): avc: denied { read write open } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" dev="dm-0" ino=132959 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334574064.088:302): avc: denied { create } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334574064.088:302): avc: denied { add_name } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir type=AVC msg=audit(1334574064.088:302): avc: denied { write } for pid=680 comm="systemd-logind" name="rules.d" dev="dm-0" ino=131449 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir ---- time->Mon Apr 16 13:01:04 2012 type=SYSCALL msg=audit(1334574064.088:303): arch=c000003e syscall=5 success=yes exit=0 a0=b a1=7fffbd4cdf10 a2=7fffbd4cdf10 a3=238 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334574064.088:303): avc: denied { getattr } for pid=680 comm="systemd-logind" path="/etc/udev/rules.d/.72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" dev="dm-0" ino=132959 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file ---- time->Mon Apr 16 13:01:04 2012 type=SYSCALL msg=audit(1334574064.088:304): arch=c000003e syscall=91 success=yes exit=0 a0=b a1=1a4 a2=fbad2484 a3=22 items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334574064.088:304): avc: denied { setattr } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" dev="dm-0" ino=132959 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file ---- time->Mon Apr 16 13:01:04 2012 type=SYSCALL msg=audit(1334574064.088:305): arch=c000003e syscall=82 success=yes exit=0 a0=1c116e0 a1=1c10110 a2=1c12d10 a3=ffffffff items=0 ppid=1 pid=680 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" subj=system_u:system_r:systemd_logind_t:s0 key=(null) type=AVC msg=audit(1334574064.088:305): avc: denied { rename } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" dev="dm-0" ino=132959 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=file type=AVC msg=audit(1334574064.088:305): avc: denied { remove_name } for pid=680 comm="systemd-logind" name=".72-seat-usb-pci-0000_00_1d_1.rulesXRktAf" dev="dm-0" ino=132959 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir Version-Release number of selected component (if applicable): selinux-policy-devel-3.10.0-114.fc17.noarch selinux-policy-targeted-3.10.0-114.fc17.noarch selinux-policy-doc-3.10.0-114.fc17.noarch selinux-policy-3.10.0-114.fc17.noarch How reproducible: systemd-loginctl attach seat1 /sys/devices/pci0000:00/0000:00:02.0/drm/card1 systemd-loginctl attach seat1 /sys/devices/pci0000:00/0000:00:1d.0/usb6 systemd-loginctl attach seat1 /sys/devices/pci0000:00/0000:00:1d.1/usb7 systemd-loginctl attach seat1 /sys/devices/pci0000:00/0000:00:02.0/graphics/fb1 Expected results: Work in enforcing mode