chiark / gitweb /
device cgroup: don't create a new CGroupDeviceAllow when it already in the list
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 28 Aug 2013 01:49:11 +0000 (09:49 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Aug 2013 12:04:56 +0000 (08:04 -0400)
commitad7bfffde594bf141e13f17e8d8214bfa29ea635
treea50a600f80a9853b3880878e2fd73cb56caf1bb1
parente862b60f1c77bc12bf49475930f79ce68489828a
device cgroup: don't create a new CGroupDeviceAllow when it already in the list

If a device node is already in the device_allow list of
CGroupContext, we should replace it instead of create a
new one and append this new one to the end of device_allow
list.

change from v1: use streq to replace !strcmp
src/core/dbus-cgroup.c