mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 03:04:18 +00:00
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:
parent
acb69cda0c
commit
0acdcc348c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue