Skip to contentSkip to conversation

dm devfs fix

PATCH New Christoph Hellwig 1 participant 1 message Apr 6, 2003 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm devfs fix

Don't pass DEVFS_FL_CURRENT_OWNER to devfs_register, the uid/gid of new nodes should always be 0.

drivers/md/dm-ioctl.c +1 -2
@@ -180,8 +180,7 @@
 	}
 
 	sprintf(name, DM_DIR "/%s", hc->name);
-	devfs_register(NULL, name, DEVFS_FL_CURRENT_OWNER,
-		       disk->major, disk->first_minor,
+	devfs_register(NULL, name, 0, disk->major, disk->first_minor,
 		       S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP,
 		       &dm_blk_dops, NULL);
 	kfree(name);