aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorhujianyang <[email protected]>2015-01-15 13:19:21 +0800
committerMiklos Szeredi <[email protected]>2015-03-18 10:29:47 +0100
commit6be4506e34cf6075a1307b646e0a6c46c1c9010d (patch)
treeb7d1dd8992d90151862fcc6cdfdfda6c58e9084e /lib/memory-notifier-error-inject.c
parentbead55ef775f6e25a8d286c0d47030580f577bec (diff)
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 <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions