diff options
author | Kay Sievers <kay@vrfy.org> | 2013-04-06 12:56:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-08 11:21:48 -0400 |
commit | 3c2670e6515cf584810f417db9b00992c8b2d75a (patch) | |
tree | bc13c7babc6c8f08b6a82d0b3848778b264d9651 /block | |
parent | bb2b0051d7b0772ea9d0b4be900c2d965093f5d7 (diff) |
driver core: add uid and gid to devtmpfs
Some drivers want to tell userspace what uid and gid should be used for
their device nodes, so allow that information to percolate through the
driver core to userspace in order to make this happen. This means that
some systems (i.e. Android and friends) will not need to even run a
udev-like daemon for their device node manager and can just rely in
devtmpfs fully, reducing their footprint even more.
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index 3c001fba80c7..dfcec431ceea 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1111,7 +1111,8 @@ struct class block_class = { | |||
1111 | .name = "block", | 1111 | .name = "block", |
1112 | }; | 1112 | }; |
1113 | 1113 | ||
1114 | static char *block_devnode(struct device *dev, umode_t *mode) | 1114 | static char *block_devnode(struct device *dev, umode_t *mode, |
1115 | uid_t *uid, gid_t *gid) | ||
1115 | { | 1116 | { |
1116 | struct gendisk *disk = dev_to_disk(dev); | 1117 | struct gendisk *disk = dev_to_disk(dev); |
1117 | 1118 | ||