Date: Fri, 29 Jun 2007 09:38:04 GMT From: Zhouyi ZHOU <zhouzhouyi@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122525 for review Message-ID: <200706290938.l5T9c4tf004663@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122525 Change 122525 by zhouzhouyi@zhouzhouyi_mactest on 2007/06/29 09:37:06 Check the ordinary case for open with O_CREAT flag Affected files ... .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/open/00.t#2 edit Differences ... ==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/open/00.t#2 (text+ko) ==== @@ -6,7 +6,7 @@ dir=`dirname $0` . ${dir}/../misc.sh -echo "1..1" +echo "1..2" n0=`namegen` n1=`namegen` @@ -31,13 +31,21 @@ echo "pid = -1 mac_test_init_vnode_label" >> ${mactest_conf} #associate the extattr of newly created vnode echo "pid = -1 mac_test_create_vnode_extattr: biba/high(low-high),mls/9(low-high) * ${dvplabel} biba/high,mls/9" >> ${mactest_conf} + mactestnotexpectanyerror -m "mls/9(low-high)" mkdir ${n1} 0755 + rm ${mactest_conf} - mactestnotexpectanyerror -m "mls/9(low-high)" mkdir ${n1} 0755 - cdir=`pwd` cd ${n1} + echo "pid = -1 mac_test_check_vnode_lookup with cr_label and dvplabel:biba/high(low-high),mls/9(low-high) biba/high,mls/9" > ${mactest_conf} + echo "pid = -1 mac_test_check_vnode_create with cr_label and dvplabel:biba/high(low-high),mls/9(low-high) biba/high,mls/9" >> ${mactest_conf} + echo "pid = -1 mac_test_init_vnode_label" >> ${mactest_conf} + echo "pid = -1 mac_test_create_vnode_extattr with cr_label mplabel dvplabel and vplabel:biba/high(low-high),mls/9(low-high) biba/high,mls/low biba/high,mls/9 biba/high,mls/9" >> ${mactest_conf} + echo "pid = -1 mac_test_check_vnode_open with acc_mode and cr_label and vplabel#VWRITE :biba/high(low-high),mls/9(low-high) biba/high,mls/9" >> ${mactest_conf} + mv ${mactest_conf} "mactest.conf" + mactestnotexpectanyerror -m "mls/9(low-high)" open ${n0} O_CREAT,O_WRONLY 0755 + rm "mactest.conf" + cd .. rm -fr ${n1} - rm ${mactest_conf} fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706290938.l5T9c4tf004663>