Revert "platform/tests: skip root tests when we can't mount /sys/devices"

This was plain stupid. We don't care about sysfs being writable or
anything *before* entering the namespace.

This reverts commit 15a26d6192.
This commit is contained in:
Lubomir Rintel 2016-10-17 15:16:44 +02:00
parent acb69cda0c
commit 0acdcc348c

View file

@ -1554,10 +1554,6 @@ unshare_user (void)
uid_t uid = geteuid ();
gid_t gid = getegid ();
/* Don't try to set up the namespaces if we're in a container. */
if (!nmtstp_is_sysfs_writable ())
return FALSE;
/* Already a root? */
if (gid == 0 && uid == 0)
return TRUE;