Commit aef8acd7 authored by Amir Goldstein's avatar Amir Goldstein Committed by Miklos Szeredi

fuse: verify zero padding in fuse_backing_map

To allow us extending the interface in the future.

Fixes: 44350256 ("fuse: implement ioctls to manage backing files")
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent ed30a4a5
...@@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map) ...@@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
goto out; goto out;
res = -EINVAL; res = -EINVAL;
if (map->flags) if (map->flags || map->padding)
goto out; goto out;
file = fget(map->fd); file = fget(map->fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment