mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
bb2b0051d7
commit
3c2670e651
5 changed files with 39 additions and 18 deletions
|
|
@ -1111,7 +1111,8 @@ struct class block_class = {
|
|||
.name = "block",
|
||||
};
|
||||
|
||||
static char *block_devnode(struct device *dev, umode_t *mode)
|
||||
static char *block_devnode(struct device *dev, umode_t *mode,
|
||||
uid_t *uid, gid_t *gid)
|
||||
{
|
||||
struct gendisk *disk = dev_to_disk(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue