1 2 3 4 5 6 7
#!/bin/sh # DF-1109 run: requires /dev/iic0 (i2c HW + iic.ko) and root. Not runnable on this guest. # On a HW-equipped host (as root): ./poc_iic_toctou /dev/iic0 set -e cd "$(dirname "$0")" DEV="${1:-/dev/iic0}" ./poc_iic_toctou "$DEV"