diff options
author | Kees Cook | 2015-08-26 23:39:21 +0200 |
---|---|---|
committer | Kees Cook | 2015-08-27 19:05:19 +0200 |
commit | 930f9ea0d8fda7f55206e9007aafa6b8e490652f (patch) | |
tree | b5a20e5166af336b7cf417c093e907947265463d /tests/expected/libmount | |
parent | docs: add notest about drone.io and travis-ci (diff) | |
download | kernel-qcow2-util-linux-930f9ea0d8fda7f55206e9007aafa6b8e490652f.tar.gz kernel-qcow2-util-linux-930f9ea0d8fda7f55206e9007aafa6b8e490652f.tar.xz kernel-qcow2-util-linux-930f9ea0d8fda7f55206e9007aafa6b8e490652f.zip |
tests: add very long mount line to libmount mtab
Very long mount lines from the kernel (either from escaping or from giant
option lists) could exceed BUFSIZ, leading to parsing failures. This
adds a test for the condition.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tests/expected/libmount')
-rw-r--r-- | tests/expected/libmount/tabfiles-parse-mtab | 7 | ||||
-rw-r--r-- | tests/expected/libmount/tabfiles-py-parse-mtab | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/expected/libmount/tabfiles-parse-mtab b/tests/expected/libmount/tabfiles-parse-mtab index ffd0c139d..93f4849bc 100644 --- a/tests/expected/libmount/tabfiles-parse-mtab +++ b/tests/expected/libmount/tabfiles-parse-mtab @@ -66,3 +66,10 @@ target: /var/lib/nfs/rpc_pipefs fstype: rpc_pipefs optstr: rw VFS-optstr: rw +------ fs: +source: none +target: /var/tmp/ / / / / / / / / / / / / / / +fstype: overlay +optstr: rw,relatime,lowerdir=lower,upperdir=upper,workdir=work +VFS-optstr: rw,relatime +FS-opstr: lowerdir=lower,upperdir=upper,workdir=work diff --git a/tests/expected/libmount/tabfiles-py-parse-mtab b/tests/expected/libmount/tabfiles-py-parse-mtab index ffd0c139d..93f4849bc 100644 --- a/tests/expected/libmount/tabfiles-py-parse-mtab +++ b/tests/expected/libmount/tabfiles-py-parse-mtab @@ -66,3 +66,10 @@ target: /var/lib/nfs/rpc_pipefs fstype: rpc_pipefs optstr: rw VFS-optstr: rw +------ fs: +source: none +target: /var/tmp/ / / / / / / / / / / / / / / +fstype: overlay +optstr: rw,relatime,lowerdir=lower,upperdir=upper,workdir=work +VFS-optstr: rw,relatime +FS-opstr: lowerdir=lower,upperdir=upper,workdir=work |