* [PATCH] dm devfs fix
@ 2003-04-06 7:20 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-04-06 7:20 UTC (permalink / raw)
To: torvalds; +Cc: dm, linux-kernel
Don't pass DEVFS_FL_CURRENT_OWNER to devfs_register, the uid/gid of new
nodes should always be 0.
--- 1.15/drivers/md/dm-ioctl.c Sat Mar 22 10:38:04 2003
+++ edited/drivers/md/dm-ioctl.c Sun Apr 6 07:55:25 2003
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-06 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-06 7:20 [PATCH] dm devfs fix Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox