I made few changes to ltp/testcases/kernel/fs/acl/tacl_xattr.sh. It is not working perfectly still there are issues with this script. I have posted patch and logs.attached strace log file. Please cross check results. Signed-off-by: Naresh Kamboju<naresh.kernel@gmail.com>.
diff --git a/testcases/kernel/fs/acl/tacl_xattr.sh b/testcases/kernel/fs/acl/tacl_xattr.sh
index 4d26d1b..2ca4f8a 100755
--- a/testcases/kernel/fs/acl/tacl_xattr.sh
+++ b/testcases/kernel/fs/acl/tacl_xattr.sh
@@ -120,10 +120,10 @@
chmod 777 tacl/mount-ext2
-adduser -d `pwd`/tacl/tacluser1 tacluser1
-adduser -d `pwd`/tacl/tacluser2 tacluser2
-adduser -d `pwd`/tacl/tacluser3 tacluser3
-adduser -d `pwd`/tacl/tacluser4 tacluser4
+useradd -d `pwd`/tacl/tacluser1 tacluser1
+useradd -d `pwd`/tacl/tacluser2 tacluser2
+useradd -d `pwd`/tacl/tacluser3 tacluser3
+useradd -d `pwd`/tacl/tacluser4 tacluser4
if [ ! -e tacl/mount-ext2/shared ]
then
@@ -188,7 +188,7 @@
fi
touch $CUR_PATH/tacl/mount-ext2/shared/symlinkdir1/newfil2 2> /dev/null
- if [ -e $CUR_PATH/tacl/mount-ext2/shared/team1/newfile1 ]
+ if [ -e $CUR_PATH/tacl/mount-ext2/shared/team1/newfile2 ]
then
echo ""
echo "FAILED: [ touch ] Create file must be denied by file permission bits"