Re: [PATCH] fix SEM_UNDO with namespaces, take 2

From: Pavel Emelyanov
Date: Tue Apr 08 2008 - 04:20:21 EST


> + if ((current->nsproxy == NULL && new_nsproxy != NULL) ||
> + (current->nsproxy != NULL && new_nsproxy == NULL) ||
> + (current->nsproxy != NULL && new_nsproxy != NULL && current->nsproxy->ipc_ns != new_nsproxy->ipc_ns)) {

Is the if (unshare_flags & CLONE_NEWIPC) check not enough?

Thanks,
Pavel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/