| commit | 369044f9fb26bdb59f76dfdacee5fc40e0e0ca32 | [log] [tgz] |
|---|---|---|
| author | Dylan Reid <[email protected]> | Wed May 18 21:06:35 2016 |
| committer | chrome-bot <[email protected]> | Sat Jul 16 02:22:48 2016 |
| tree | 9fb96f5c76364f85a221b3ae61c6dfc34d784b38 | |
| parent | 4f292e8165fcd412702d10fc203c882a38a7aa6f [diff] |
Allow mount data to be specified
Add an API, minijail_mount_with_data, that allows the mount data string
to be set. This is needed for some mounts when entering a user
namespace and specifying uid=, gid=, or similar mount options.
BUG=b/27273730
TEST=mount proc with hidepid=2 check mount output to confirm
security_Minijail0 test case added.
Signed-off-by: Dylan Reid <[email protected]>
(cherry picked from commit 81e2397c51787ed8682b08e9c732f53cc668401f)
Change-Id: Iee10ead22c7d043afc3955496f7d4c470e31dfa0
Reviewed-on: https://chromium-review.googlesource.com/360259
Commit-Ready: Dylan Reid <[email protected]>
Tested-by: Dylan Reid <[email protected]>
Reviewed-by: Stephen Barber <[email protected]>