]> xenbits.xensource.com Git - libvirt.git/commit
conf: don't iterate over backcompat console in virDomainChrDefForeach
authorPavel Hrdina <phrdina@redhat.com>
Mon, 15 May 2017 13:28:15 +0000 (15:28 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 24 May 2017 10:50:09 +0000 (12:50 +0200)
commit0c53382d820aac4767895a727c01de23397a6aaa
treecdde4d742d836714b5a2af68395e12080b1feb61
parentf8912d05279a368b7d558537ed5dcb667c4d1597
conf: don't iterate over backcompat console in virDomainChrDefForeach

If the first console is just a copy of the first serial device we
don't need to iterate over the same device twice in order to perform
actions like security labeling, cgroup configuring, etc.

Currently only security SELinux manager was aware of this fact.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c
src/security/security_selinux.c