/* parent_has_perm: when adding a new allow rule to a device whitelist, the rule must be allowed in the parent device  */
static int parent_has_perm(struct dev_cgroup *childcg, struct dev_whitelist_item *wh)
/* parent_has_perm: when adding a new allow rule to a device whitelist, the rule must be allowed in the parent device  */
static int parent_has_perm(struct dev_cgroup *childcg, struct dev_whitelist_item *wh)
{
	struct cgroup *pcg = childcg->css.cgroup->parent;
	struct dev_cgroup *parent;
	if (!pcg)
		return 1;
	parent = cgroup_to_devcgroup(pcg);
	return may_access_whitelist(parent, wh);
}