| 1 |
#!/bin/bash -e |
| 2 |
|
| 3 |
echo creating setgid directory |
| 4 |
mkdir $PATH_EXPDIR/dir |
| 5 |
chgrp 42 $PATH_EXPDIR/dir |
| 6 |
chmod g+s $PATH_EXPDIR/dir |
| 7 |
echo testing host file system create with effective gid |
| 8 |
./tfsgid 42 $PATH_EXPDIR/a || : |
| 9 |
echo testing host file system create with setgid parent |
| 10 |
./tfsgid 44 $PATH_EXPDIR/dir/a |
| 11 |
|
| 12 |
echo testing diod file system create with effective gid |
| 13 |
./tfsgid 42 $PATH_MNTDIR/a || : |
| 14 |
echo testing diod file system create with setgid parent |
| 15 |
./tfsgid 44 $PATH_EXPDIR/dir/a |