Skip to content

Commit 91fa2cc

Browse files
committed
userns: Convert devtmpfs to use GLOBAL_ROOT_UID and GLOBAL_ROOT_GID
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
1 parent b9b73f7 commit 91fa2cc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/base/devtmpfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ static int handle_remove(const char *nodename, struct device *dev)
309309
* before unlinking this node, reset permissions
310310
* of possible references like hardlinks
311311
*/
312-
newattrs.ia_uid = 0;
313-
newattrs.ia_gid = 0;
312+
newattrs.ia_uid = GLOBAL_ROOT_UID;
313+
newattrs.ia_gid = GLOBAL_ROOT_GID;
314314
newattrs.ia_mode = stat.mode & ~0777;
315315
newattrs.ia_valid =
316316
ATTR_UID|ATTR_GID|ATTR_MODE;

‎init/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,6 @@ config UIDGID_CONVERTED
932932
depends on NET_9P = n
933933

934934
# Filesystems
935-
depends on DEVTMPFS = n
936935
depends on XENFS = n
937936

938937
depends on 9P_FS = n

0 commit comments

Comments
 (0)