Lines Matching +defs:source +defs:path
14 * Redistribution and use in source and binary forms, with or without
17 * 1. Redistributions of source code must retain the above copyright
66 static int kern___acl_aclcheck_path(struct thread *td, const char *path,
68 static int kern___acl_delete_path(struct thread *td, const char *path,
70 static int kern___acl_get_path(struct thread *td, const char *path,
72 static int kern___acl_set_path(struct thread *td, const char *path,
82 acl_copy_oldacl_into_acl(const struct oldacl *source, struct acl *dest)
86 if (source->acl_cnt < 0 || source->acl_cnt > OLDACL_MAX_ENTRIES)
91 dest->acl_cnt = source->acl_cnt;
95 dest->acl_entry[i].ae_tag = source->acl_entry[i].ae_tag;
96 dest->acl_entry[i].ae_id = source->acl_entry[i].ae_id;
97 dest->acl_entry[i].ae_perm = source->acl_entry[i].ae_perm;
104 acl_copy_acl_into_oldacl(const struct acl *source, struct oldacl *dest)
108 if (source->acl_cnt > OLDACL_MAX_ENTRIES)
113 dest->acl_cnt = source->acl_cnt;
116 dest->acl_entry[i].ae_tag = source->acl_entry[i].ae_tag;
117 dest->acl_entry[i].ae_id = source->acl_entry[i].ae_id;
118 dest->acl_entry[i].ae_perm = source->acl_entry[i].ae_perm;
214 * code once the syscall has converted the path or file descriptor to a vnode
343 * syscalls -- convert the path/fd to a vnode, and call vacl_whatever. Don't
348 * Given a file path, get an ACL for it
354 return (kern___acl_get_path(td, uap->path, uap->type, uap->aclp,
359 * Given a file path, get an ACL for it; don't follow links.
365 return(kern___acl_get_path(td, uap->path, uap->type, uap->aclp,
370 kern___acl_get_path(struct thread *td, const char *path, acl_type_t type,
376 NDINIT(&nd, LOOKUP, follow | AUDITVNODE1, UIO_USERSPACE, path);
387 * Given a file path, set an ACL for it.
393 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp,
398 * Given a file path, set an ACL for it; don't follow links.
404 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp,
409 kern___acl_set_path(struct thread *td, const char *path,
415 NDINIT(&nd, LOOKUP, follow | AUDITVNODE1, UIO_USERSPACE, path);
466 * Given a file path, delete an ACL from it.
472 return (kern___acl_delete_path(td, uap->path, uap->type, FOLLOW));
476 * Given a file path, delete an ACL from it; don't follow links.
482 return (kern___acl_delete_path(td, uap->path, uap->type, NOFOLLOW));
486 kern___acl_delete_path(struct thread *td, const char *path,
492 NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path);
503 * Given a file path, delete an ACL from it.
523 * Given a file path, check an ACL for it.
529 return (kern___acl_aclcheck_path(td, uap->path, uap->type, uap->aclp,
534 * Given a file path, check an ACL for it; don't follow links.
539 return (kern___acl_aclcheck_path(td, uap->path, uap->type, uap->aclp,
544 kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type,
550 NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path);