#
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
#
#
# Copyright 2015, Richard Lowe.
#
I: none
EOF
cd /
}
## Tests of manipulating a running process (ourselves)
echo "Set (self)"
I: aslr
EOF
}
echo "Add (self)"
/usr/bin/psecflags -s current,noexecstack $$
I: aslr,noexecstack
EOF
}
echo "Remove (self)"
I: noexecstack
EOF
}
echo "All (self)"
}
echo "None (self)"
I: none
EOF
}
echo "Set (child)"
typeset pid;
pid=$!
E: aslr
I: aslr
EOF
kill $pid
}
echo "Add (child)"
typeset pid;
pid=$!
E: aslr,noexecstack
I: aslr,noexecstack
EOF
kill $pid
}
echo "Remove (child)"
typeset pid;
pid=$!
E: none
I: none
EOF
kill $pid
}
echo "All (child)"
pid=$!
ret=$?
kill $pid
}
echo "None (child)"
typeset pid
pid=$!
E: none
I: none
EOF
kill $pid
}
echo "List"
aslr
forbidnullmap
noexecstack
EOF
}
exit 0