public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: torvalds@transmeta.com
Cc: dm@uk.sistina.com, linux-kernel@vger.kernel.org
Subject: [PATCH] dm devfs fix
Date: Sun, 6 Apr 2003 09:20:44 +0200	[thread overview]
Message-ID: <20030406092044.B6637@lst.de> (raw)

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);

                 reply	other threads:[~2003-04-06  7:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030406092044.B6637@lst.de \
    --to=hch@lst.de \
    --cc=dm@uk.sistina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox