]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: (namespace) mtd: Check permissions towards mtd block device inode...
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 7 Oct 2015 19:53:33 +0000 (14:53 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:44:55 +0000 (07:44 -0600)
commit459f5e1dbb36cdbd0d6f45cd369850de27a736d9
tree3dfe1174e021e9289053b5633ae4e230cb8e05da
parentb77dabf41dbc30cd2d36a552f4f904e2cf471f9f
UBUNTU: SAUCE: (namespace) mtd: Check permissions towards mtd block device inode when mounting

Unprivileged users should not be able to mount mtd block devices
when they lack sufficient privileges towards the block device
inode.  Update mount_mtd() to validate that the user has the
required access to the inode at the specified path. The check
will be skipped for CAP_SYS_ADMIN, so privileged mounts will
continue working as before.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/mtd/mtdsuper.c