]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
commit0e81d9be2e5e0814eebe608124c5af117740b83f
tree92b055c276186802c4206cda4c81c252cf2ead1f
parent8c0e8181791a93a28350e6cc454b591870cdbbec
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