Lines Matching refs:buf

130 static void tomoyo_add_slash(struct tomoyo_path_info *buf)  in tomoyo_add_slash()  argument
132 if (buf->is_dir) in tomoyo_add_slash()
137 strcat((char *) buf->name, "/"); in tomoyo_add_slash()
138 tomoyo_fill_path_info(buf); in tomoyo_add_slash()
149 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path) in tomoyo_get_realpath() argument
151 buf->name = tomoyo_realpath_from_path(path); in tomoyo_get_realpath()
152 if (buf->name) { in tomoyo_get_realpath()
153 tomoyo_fill_path_info(buf); in tomoyo_get_realpath()
716 struct tomoyo_path_info buf; in tomoyo_path_number_perm() local
723 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_number_perm()
727 tomoyo_add_slash(&buf); in tomoyo_path_number_perm()
730 r.param.path_number.filename = &buf; in tomoyo_path_number_perm()
736 kfree(buf.name); in tomoyo_path_number_perm()
758 struct tomoyo_path_info buf; in tomoyo_check_open_permission() local
765 buf.name = NULL; in tomoyo_check_open_permission()
771 if (!tomoyo_get_realpath(&buf, path)) { in tomoyo_check_open_permission()
778 &buf); in tomoyo_check_open_permission()
783 &buf); in tomoyo_check_open_permission()
786 kfree(buf.name); in tomoyo_check_open_permission()
810 struct tomoyo_path_info buf; in tomoyo_path_perm() local
820 buf.name = NULL; in tomoyo_path_perm()
822 if (!tomoyo_get_realpath(&buf, path)) in tomoyo_path_perm()
828 tomoyo_add_slash(&buf); in tomoyo_path_perm()
838 error = tomoyo_path_permission(&r, operation, &buf); in tomoyo_path_perm()
842 kfree(buf.name); in tomoyo_path_perm()
867 struct tomoyo_path_info buf; in tomoyo_mkdev_perm() local
875 if (tomoyo_get_realpath(&buf, path)) { in tomoyo_mkdev_perm()
879 r.param.mkdev.filename = &buf; in tomoyo_mkdev_perm()
886 kfree(buf.name); in tomoyo_mkdev_perm()