diff options
author | Paul Lawrence <paullawrence@google.com> | 2020-04-01 10:15:12 -0700 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2020-04-03 17:21:21 +0000 |
commit | ecd6f86bed262b0fd0dd0128ecddb9865f3c5f59 (patch) | |
tree | 812194b90eea9004f7ae9035b18c46c087c75b48 /include/uapi | |
parent | 1a000625086fd90f1f55acd79c3798ca81d314a4 (diff) |
ANDROID: Incremental fs: Protect get_fill_block, and add a field
Since INCFS_IOC_GET_FILLED_BLOCKS potentially leaks information about usage
patterns, and is only useful to someone filling the file, best protect it in
the same way as INCFS_IOC_FILL_BLOCKS.
Add useful field data_block_out as well
Test: incfs_test passes
Bug: 152983639
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I126a8cf711e56592479093e9aadbfd0e7f700752
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/incrementalfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/incrementalfs.h b/include/uapi/linux/incrementalfs.h index 0fb1c86d2f9d..ac775b64bdcf 100644 --- a/include/uapi/linux/incrementalfs.h +++ b/include/uapi/linux/incrementalfs.h @@ -328,6 +328,9 @@ struct incfs_get_filled_blocks_args { /* Actual number of blocks in file */ __u32 total_blocks_out; + /* The number of data blocks in file */ + __u32 data_blocks_out; + /* Number of bytes written to range buffer */ __u32 range_buffer_size_out; |