Lines Matching refs:acl
4 * Purpose: setting an acl on a file a verifies that the accesses are right
24 #include <sys/acl.h>
31 /* the "typical" acl used for the test */
74 /* acl with user entries used for the test */
79 acl_t acl;
80 acl = acl_from_text(acl_text);
81 return acl;
84 /* acl with group entries used for the test */
90 acl_t acl;
91 acl = acl_from_text(acl_text);
92 return acl;
99 acl_t acl;
100 acl = acl_from_text(acl_text);
101 return acl;
125 * set acl in order the file is only readable for the testuser
142 * set acl in order the file is only readable for the testgroup
160 * set acl in order the file is only readable for the testuser
177 * set read-write acl on the file for the testuser
219 * set acl in order the file is only readable for the testgroup
238 * set acl in order the file is only readable for the testuser
256 * set read-write acl on the file for the testuser
287 /* testing default acl */
288 void test_acl_default(char *dir, acl_t acl)
290 /* set default acl on directory */
292 /* compare the file's acl and the parent directory's one */
296 res = acl_set_file(dir, ACL_TYPE_DEFAULT, acl);
329 printf("Test acl with entries on users\n");
332 /* set the right acl for the test */
335 printf("setting acl on file %s failed\nBad NFS configuration",
345 printf("\nTest of default acl:\n");
350 printf("\nTest acl with entries concerning groups\n");
354 printf("setting acl on file %s failed\n", argv[1]);
370 printf("The acl library was missing upon compilation.\n");