summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@chromium.org>2019-03-01 16:13:27 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-02 17:41:26 -0800
commit25a86d99cca821e18a8af28403b415a530e17c38 (patch)
tree082af96e112cefaf990a73cd1389332cbd0a3361 /src/linux.rs
parent96f2d8ebe2b2523ed2ca0cf54005ded8d9cd8e4f (diff)
downloadcrosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar.gz
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar.bz2
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar.lz
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar.xz
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.tar.zst
crosvm-25a86d99cca821e18a8af28403b415a530e17c38.zip
tpm: Update tpm device policy to support libtpm2
Tested by running the following on a grunt board (Barla) in dev mode
together with CL:1496910:

    sudo crosvm run \
        --root rootfs.ext4 \
        --socket crosvm.sock \
        --seccomp-policy-dir seccomp \
        --software-tpm \
        -p init=/bin/bash \
        -p panic=-1 \
        vmlinux.bin

and confirming that /dev/tpm0 and /dev/tpmrm0 are present in the VM.

I needed to override the common device policy's `open` and `openat` and
was not able to get that working with the existing @include.

Note: untested on arm.

BUG=chromium:921841
TEST=manual testing on grunt

Change-Id: Ied7f18a631ce8c0ae280f8b6c01511ca20c3d1c8
Reviewed-on: https://chromium-review.googlesource.com/1496909
Commit-Ready: David Tolnay <dtolnay@chromium.org>
Tested-by: David Tolnay <dtolnay@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions