diff options
| author | Zubin Mithra <zsm@chromium.org> | 2020-07-14 11:24:24 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-17 15:26:11 +0200 |
| commit | 18d3096670449298d5baa803abd7782198ddf179 (patch) | |
| tree | 88aa04940926c5749ea82c535e02c2cf11a43aff /tools/create-gce-image.sh | |
| parent | 54b3c45e2881a2cc71d06d21f0ca39b6e47666db (diff) | |
tools: add udev rule for i915
Add a udev rule to create /dev/i915, a symlink to /dev/dri/card#.
This prevents i915 related syscalls from being exercised during fuzzing
if the driver is not used.
Diffstat (limited to 'tools/create-gce-image.sh')
| -rwxr-xr-x | tools/create-gce-image.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index 39ec49cbe..80be8686a 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -149,6 +149,9 @@ done # Create a /dev/vim2m symlink for the device managed by the vim2m driver echo 'ATTR{name}=="vim2m", SYMLINK+="vim2m"' | sudo tee -a disk.mnt/etc/udev/rules.d/50-udev-default.rules +# Create a /dev/i915 symlink to /dev/dri/card# if i915 driver is in use. +echo 'SUBSYSTEMS=="pci", DRIVERS=="i915", SYMLINK+="i915"' | sudo tee -a disk.mnt/etc/udev/rules.d/60-drm.rules + # sysctls echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf echo "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf |
