aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorhujianyang <hujianyang@huawei.com>2015-01-15 13:19:21 +0800
committerMiklos Szeredi <mszeredi@suse.cz>2015-03-18 10:29:47 +0100
commit6be4506e34cf6075a1307b646e0a6c46c1c9010d (patch)
treeb7d1dd8992d90151862fcc6cdfdfda6c58e9084e /drivers
parentovl: print error message for invalid mount options (diff)
downloadlinux-dev-6be4506e34cf6075a1307b646e0a6c46c1c9010d.tar.xz
linux-dev-6be4506e34cf6075a1307b646e0a6c46c1c9010d.zip
ovl: check lowerdir amount for non-upper mount
Recently multi-lower layer mount support allow upperdir and workdir to be omitted, then cause overlayfs can be mount with only one lowerdir directory. This action make no sense and have potential risk. This patch check the total number of lower directories to prevent mounting overlayfs with only one directory. Also, an error message is added to indicate lower directories exceed OVL_MAX_STACK limit. Signed-off-by: hujianyang <hujianyang@huawei.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions