You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_acl/01-set_get_test.sh

23 lines
461 B

#!/bin/sh
# Author: Dan Trainor <dan.trainor@gmail.com>
# Athmane Madjoudj <athmanem@gmail.com>
echo "Running $0 - Check that we can get and set acl"
source library/sh_lib.sh
check=0
touch /tmp/acl_test_file
setfacl -m user:nobody:r-- /tmp/acl_test_file
getfacl /tmp/acl_test_file |grep -q 'user:nobody:r--'
# t_CheckExitStatus $?
check=$(eq_is_success ${check} 0)
/bin/rm -f /tmp/acl_test_file
check_test_status ${check} "$0"
exit ${check}