Print this page
Code review comments from jeffpc
@@ -48,11 +48,11 @@
self_add() {
echo "Add (self)"
/usr/bin/psecflags -s current,noexecstack $$
cat > expected <<EOF
- I: aslr, noexecstack
+ I: aslr,noexecstack
EOF
/usr/bin/psecflags $$ | grep I: > output
diff -u expected output || exit 1
}
@@ -108,12 +108,12 @@
/usr/bin/psecflags -s aslr $$
/usr/bin/psecflags -s current,noexecstack -e sleep 10000 &
pid=$!
cat > expected <<EOF
- E: aslr, noexecstack
- I: aslr, noexecstack
+ E: aslr,noexecstack
+ I: aslr,noexecstack
EOF
/usr/bin/psecflags $pid | grep '[IE]:' > output
kill $pid
/usr/bin/psecflags -s none $$
diff -u expected output || exit 1