Skip to content

Commit

Permalink
Merge change 6868 into donut
Browse files Browse the repository at this point in the history
* changes:
  Test to ensure that /sdcard is mounted with security-critical options.
  • Loading branch information
Android (Google) Code Review committed Jul 16, 2009
2 parents 8987a8e + b000782 commit 7082788
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/fstest/mounts-test.sh
@@ -0,0 +1,23 @@
#!/bin/sh

rtrn=0

adb shell mount | grep -q /sdcard
if [ 0 -ne $? ]
then
echo FAILURE: /sdcard is not mounted
exit 1
fi

for i in nosuid noexec
do
adb shell mount | grep /sdcard | grep -q $i
if [ 0 -ne $? ]
then
echo FAILURE: /sdcard is not mounted $i
rtrn=$(expr $rtrn + 1)
fi
done

exit $rtrn

0 comments on commit 7082788

Please sign in to comment.