diff options
author | Martin Matuska <martin@matuska.org> | 2017-03-15 23:27:48 +0100 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2017-03-16 11:39:08 +0100 |
commit | bea9f9cf03b97018f2398df070193835b3822713 (patch) | |
tree | 843247e3d304df3a70d0b9ecee641b8e8ca33942 /cpio/test | |
parent | f57d129d828f411d6f1eb81ca51dfd9e1fead353 (diff) | |
download | libarchive-bea9f9cf03b97018f2398df070193835b3822713.tar.gz |
Add NFSv4 ACL support for Linux via librichacl
Richacls are interpreted as NFSv4 ACLs and stored in archive_acl (Richacl
flags and masks are not stored). Analog to mac_metadata, NFSv4 ACLs do not
get extracted when the extraction of extended attributes is enabled and the
"trusted.richacl" extended attribute is present.
RichACL masks and are calculated from file mode on extraction.
mac_metadata acl check has been moved in the code to be together with the
richacl check.
Diffstat (limited to 'cpio/test')
-rw-r--r-- | cpio/test/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpio/test/CMakeLists.txt b/cpio/test/CMakeLists.txt index cc5fe011..4c3fb88a 100644 --- a/cpio/test/CMakeLists.txt +++ b/cpio/test/CMakeLists.txt @@ -63,9 +63,14 @@ IF(ENABLE_CPIO AND ENABLE_TEST) # ADD_EXECUTABLE(bsdcpio_test ${bsdcpio_test_SOURCES}) IF(ENABLE_ACL) + SET(TEST_ACL_LIBS "") IF(HAVE_LIBACL) - TARGET_LINK_LIBRARIES(bsdcpio_test ${ACL_LIBRARY}) + LIST(APPEND TEST_ACL_LIBS ${ACL_LIBRARY}) ENDIF(HAVE_LIBACL) + IF(HAVE_LIBRICHACL) + LIST(APPEND TEST_ACL_LIBS ${RICHACL_LIBRARY}) + ENDIF(HAVE_LIBRICHACL) + TARGET_LINK_LIBRARIES(bsdcpio_test ${TEST_ACL_LIBS}) ENDIF(ENABLE_ACL) SET_PROPERTY(TARGET bsdcpio_test PROPERTY COMPILE_DEFINITIONS LIST_H) |