Open GoogleCodeExporter opened 9 years ago
Result of running the test script on my own system:
$ ./test-bsdtar-nested-acl.sh
*** Default ACLs should be preserved
on top-level directories as well as subdirectories.
==> Testing directory path: dir
--> The following two ACLs should be identical
(in particular the Default ACLs):
# file: src/dir
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::r-x
# file: dest/dir
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::r-x
--> The following two ACLs should be identical
(in particular the effective rights masks):
# file: src/dir/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::r--
# file: dest/dir/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::r--
==> Testing directory path: dir1/dir2
--> The following two ACLs should be identical
(in particular the Default ACLs):
# file: src/dir1/dir2
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::r-x
# file: dest/dir1/dir2
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::r-x
--> The following two ACLs should be identical
(in particular the effective rights masks):
# file: src/dir1/dir2/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::r--
# file: dest/dir1/dir2/test
# owner: root
# group: root
user::rw-
group::r--
other::r--
==> Done.
Original comment by a.c.kal...@gmail.com
on 28 Jan 2015 at 8:27
[deleted comment]
Original comment by a.c.kal...@gmail.com
on 28 Jan 2015 at 8:57
Attachments:
Sorry for all the deletions.
The test script is my attempt to minimize the test for a much more involved
scenario which is discussed on this Arch Linux issue:
https://bugs.archlinux.org/task/43584#comment131888
Final version of the script (I hope) with my results:
./test-bsdtar-nested-acl.sh
*** Default ACLs should be preserved
on top-level directories as well as subdirectories.
==> Testing directory path: dir
--> The following two ACLs should be identical
(in particular the Default ACLs):
# file: src/dir
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::---
# file: dest/dir
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::---
--> The following two ACLs should be identical
(in particular the effective rights masks):
# file: src/dir/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::---
# file: dest/dir/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::---
==> Testing directory path: dir1/dir2
--> The following two ACLs should be identical
(in particular the Default ACLs):
# file: src/dir1/dir2
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x
default:group:nobody:r-x
default:mask::r-x
default:other::---
# file: dest/dir1/dir2
# owner: root
# group: root
user::rwx
group::r-x
group:nobody:r-x
mask::r-x
other::---
--> The following two ACLs should be identical
(in particular the effective rights masks):
# file: src/dir1/dir2/test
# owner: root
# group: root
user::rw-
group::r-x #effective:r--
group:nobody:r-x #effective:r--
mask::r--
other::---
# file: dest/dir1/dir2/test
# owner: root
# group: root
user::rw-
group::r--
other::---
==> Done.
Original comment by a.c.kal...@gmail.com
on 28 Jan 2015 at 1:56
Attachments:
Is it possible to reproduce this issue without using sudo?
Non-root users can set ACLs on their own files; if we can reproduce this
without sudo, we can build a libarchive test to reproduce the issue which will
help ensure that it not only gets fixed, but stays fixed.
Currently, ACL backup/restore handling is only tested on FreeBSD. Could you
please look at these two tests and see if there is a way to have some part of
them run on Linux systems as well? I know that not all Linux systems have ACL
support, but I'm not sure what compile-time or run-time tests are appropriate
here.
libarchive/test/test_acl_freebsd_nfs4.c
libarchive/test/test_acl_freebsd_posix1e.c
Original comment by kientzle@gmail.com
on 2 Feb 2015 at 12:51
Original issue reported on code.google.com by
a.c.kal...@gmail.com
on 28 Jan 2015 at 8:23Attachments: