Blame test/nfs/nfsacl.test
|
rpm-build |
0a0c83 |
This is a regression test for bugs in the nfsacl protocol extension.
|
|
rpm-build |
0a0c83 |
The test should be run on an NFS export mount with ACL support.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Create a test directory and file.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ umask 022
|
|
rpm-build |
0a0c83 |
$ mkdir -p test/sub
|
|
rpm-build |
0a0c83 |
$ echo blah > test/sub/blah
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ cp -rp test/sub test/sub2
|
|
rpm-build |
0a0c83 |
$ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
|
|
rpm-build |
0a0c83 |
> drwxr-xr-x test/sub2
|
|
rpm-build |
0a0c83 |
> -rw-r--r-- test/sub2/blah
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ rm -rf test/sub2
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ setfacl -m u:daemon:rwx test/sub
|
|
rpm-build |
0a0c83 |
$ setfacl -dm u:daemon:rwx test/sub
|
|
rpm-build |
0a0c83 |
$ getfattr -m- test/sub
|
|
rpm-build |
0a0c83 |
> # file: test/sub
|
|
rpm-build |
0a0c83 |
> system.posix_acl_access
|
|
rpm-build |
0a0c83 |
> system.posix_acl_default
|
|
rpm-build |
0a0c83 |
>
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ cp -rp test/sub test/sub2
|
|
rpm-build |
0a0c83 |
$ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
|
|
rpm-build |
0a0c83 |
> drwxrwxr-x+ test/sub2
|
|
rpm-build |
0a0c83 |
> -rw-r--r-- test/sub2/blah
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ rm -rf test/sub2
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ setfacl -m u:daemon:rw test/sub/blah
|
|
rpm-build |
0a0c83 |
$ cp -rp test/sub test/sub2
|
|
rpm-build |
0a0c83 |
$ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
|
|
rpm-build |
0a0c83 |
> drwxrwxr-x+ test/sub2
|
|
rpm-build |
0a0c83 |
> -rw-rw-r--+ test/sub2/blah
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ rm -rf test/sub2
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Clean up.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
$ rm -rf test
|