From: Gao feng Date: Wed, 28 Aug 2013 01:49:11 +0000 (+0800) Subject: device cgroup: don't create a new CGroupDeviceAllow when it already in the list X-Git-Tag: v207~70 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=ad7bfffde594bf141e13f17e8d8214bfa29ea635;hp=ad7bfffde594bf141e13f17e8d8214bfa29ea635;p=elogind.git 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 ---