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.
23 lines
461 B
23 lines
461 B
12 months ago
|
#!/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}
|