Lines Matching full:acl
3 * ACL testing basic program
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; in test_acl_user_create() local
80 acl = acl_from_text(acl_text); in test_acl_user_create()
81 return acl; in test_acl_user_create()
84 /* acl with group entries used for the test */
90 acl_t acl; in test_acl_grp_create() local
91 acl = acl_from_text(acl_text); in test_acl_grp_create()
92 return acl; in test_acl_grp_create()
99 acl_t acl; in test_acl_default_create() local
100 acl = acl_from_text(acl_text); in test_acl_default_create()
101 return acl; in test_acl_default_create()
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) in test_acl_default() argument
290 /* set default acl on directory */ in test_acl_default()
292 /* compare the file's acl and the parent directory's one */ in test_acl_default()
296 res = acl_set_file(dir, ACL_TYPE_DEFAULT, acl); in test_acl_default()
329 printf("Test acl with entries on users\n"); in main()
332 /* set the right acl for the test */ in main()
335 printf("setting acl on file %s failed\nBad NFS configuration", in main()
345 printf("\nTest of default acl:\n"); in main()
350 printf("\nTest acl with entries concerning groups\n"); in main()
354 printf("setting acl on file %s failed\n", argv[1]); in main()
370 printf("The acl library was missing upon compilation.\n"); in main()