#!/bin/sh
# DF-2697 root-side setup (guest).
# Creates the 0660 root:wheel mqueue under umask 0 and installs the two
# copies of the victim binary.
set -e
umask 000
/tmp/mqcreate
cp /tmp/gdrop /gdrop && chown root:wheel /gdrop && chmod 2755 /gdrop
cp /tmp/gdrop /gdrop_plain && chown root:wheel /gdrop_plain && chmod 755 /gdrop_plain
ls -l /gdrop /gdrop_plain
echo SETUP-OK
