Lines Matching defs:path
145 * @path: Pointer to "struct path".
149 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path)
151 buf->name = tomoyo_realpath_from_path(path);
160 * tomoyo_audit_path_log - Audit path request log.
169 [r->param.path.operation],
170 r->param.path.filename->name);
174 * tomoyo_audit_path2_log - Audit path/path request log.
189 * tomoyo_audit_mkdev_log - Audit path/number/number/number request log.
206 * tomoyo_audit_path_number_log - Audit path/number request log.
241 * tomoyo_check_path_acl - Check permission for path operation.
258 if (acl->perm & (1 << r->param.path.operation)) {
259 r->param.path.matched_path =
260 tomoyo_compare_name_union(r->param.path.filename,
262 return r->param.path.matched_path != NULL;
268 * tomoyo_check_path_number_acl - Check permission for path number operation.
289 * tomoyo_check_path2_acl - Check permission for path path operation.
309 * tomoyo_check_mkdev_acl - Check permission for path number number number operation.
563 * tomoyo_path_permission - Check permission for single path operation.
583 r->param.path.filename = filename;
584 r->param.path.operation = operation;
613 r->param.path.filename = filename;
614 r->param.path.operation = TOMOYO_TYPE_EXECUTE;
703 * @path: Pointer to "struct path".
708 int tomoyo_path_number_perm(const u8 type, const struct path *path,
713 .path1 = { .mnt = path->mnt, .dentry = path->dentry },
723 if (!tomoyo_get_realpath(&buf, path))
748 * @path: Pointer to "struct path".
754 const struct path *path, const int flag)
761 .path1 = { .mnt = path->mnt, .dentry = path->dentry },
771 if (!tomoyo_get_realpath(&buf, path)) {
797 * @path: Pointer to "struct path".
803 int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target)
807 .path1 = { .mnt = path->mnt, .dentry = path->dentry },
822 if (!tomoyo_get_realpath(&buf, path))
853 * @path: Pointer to "struct path".
859 int tomoyo_mkdev_perm(const u8 operation, const struct path *path,
864 .path1 = { .mnt = path->mnt, .dentry = path->dentry },
875 if (tomoyo_get_realpath(&buf, path)) {
898 * @path1: Pointer to "struct path".
899 * @path2: Pointer to "struct path".
903 int tomoyo_path2_perm(const u8 operation, const struct path *path1,
904 const struct path *path2)