]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: mtd: Check permissions towards mtd block device inode when mounting
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 7 Oct 2015 19:53:33 +0000 (14:53 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:19:08 +0000 (10:19 +0100)
commitf37ed6887e80585d15f01de2dece35f5fbc87180
tree57f2bbd8962744130de5f248eda06c52fe858eb8
parent29789c7406fbb08737b914dd7c68576059f9ad69
UBUNTU: SAUCE: 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/mtd/mtdsuper.c