Lines Matching full:acl
28 #include <sys/acl.h>
37 * gcc -I/path/to/atf/include -L/path/to/atf/lib -latf-c -lacl acl-api-test.c
40 #include <acl/libacl.h>
81 acl_t acl; in ATF_TC_BODY() local
85 acl = acl_from_mode_np(src_mode); in ATF_TC_BODY()
86 ATF_REQUIRE(acl != NULL); in ATF_TC_BODY()
88 ATF_CHECK_EQ(0, acl_equiv_mode_np(acl, &equiv_mode)); in ATF_TC_BODY()
91 acl_free(acl); in ATF_TC_BODY()
101 acl_t acl; in ATF_TC_BODY() local
106 acl = acl_init(1); in ATF_TC_BODY()
107 ATF_REQUIRE(acl != NULL); in ATF_TC_BODY()
109 /* empty acl maps to 0000 UNIX mode */ in ATF_TC_BODY()
110 ATF_CHECK_EQ(0, acl_equiv_mode_np(acl, &mode)); in ATF_TC_BODY()
114 /* NFS-branded acl's can't be converted to UNIX mode */ in ATF_TC_BODY()
115 ATF_REQUIRE_EQ(0, acl_create_entry(&acl, &entry)); in ATF_TC_BODY()
117 ATF_CHECK_EQ(1, acl_equiv_mode_np(acl, &mode)); in ATF_TC_BODY()
120 /* acl's with qualified user entries can't be converted to UNIX mode */ in ATF_TC_BODY()
121 acl_free(acl); in ATF_TC_BODY()
122 acl = acl_init(1); in ATF_TC_BODY()
123 ATF_REQUIRE(acl != NULL); in ATF_TC_BODY()
124 ATF_REQUIRE_EQ(0, acl_create_entry(&acl, &entry)); in ATF_TC_BODY()
127 ATF_CHECK_EQ(1, acl_equiv_mode_np(acl, &mode)); in ATF_TC_BODY()
149 /* now create an entry and compare against empty acl */ in ATF_TC_BODY()
157 /* make a dup of non-empty acl and check that they are equal */ in ATF_TC_BODY()