#!/bin/sh
# DF-5797 setup: root creates the victim file (root-owned, world-writable)
rm -f /tmp/df5797_target /tmp/df5797_ro_target
printf 'victim\n' > /tmp/df5797_target
chown root:wheel /tmp/df5797_target
chmod 666 /tmp/df5797_target
# control: read-only-for-user file
printf 'ro\n' > /tmp/df5797_ro_target
chown root:wheel /tmp/df5797_ro_target
chmod 644 /tmp/df5797_ro_target
ls -l /tmp/df5797_target /tmp/df5797_ro_target
