Lines Matching refs:p
854 static bool tomoyo_path_matches_pattern2(const char *f, const char *p) in tomoyo_path_matches_pattern2() argument
859 while (*f && *p) { in tomoyo_path_matches_pattern2()
863 p_delimiter = strchr(p, '/'); in tomoyo_path_matches_pattern2()
865 p_delimiter = p + strlen(p); in tomoyo_path_matches_pattern2()
866 if (*p == '\\' && *(p + 1) == '{') in tomoyo_path_matches_pattern2()
868 if (!tomoyo_file_matches_pattern(f, f_delimiter, p, in tomoyo_path_matches_pattern2()
874 p = p_delimiter; in tomoyo_path_matches_pattern2()
875 if (*p) in tomoyo_path_matches_pattern2()
876 p++; in tomoyo_path_matches_pattern2()
879 while (*p == '\\' && in tomoyo_path_matches_pattern2()
880 (*(p + 1) == '*' || *(p + 1) == '@')) in tomoyo_path_matches_pattern2()
881 p += 2; in tomoyo_path_matches_pattern2()
882 return !*f && !*p; in tomoyo_path_matches_pattern2()
890 if (*(p - 1) != '/' || p_delimiter <= p + 3 || *p_delimiter != '/' || in tomoyo_path_matches_pattern2()
895 if (!tomoyo_file_matches_pattern(f, f_delimiter, p + 2, in tomoyo_path_matches_pattern2()
941 const char *p = pattern->name; in tomoyo_path_matches_pattern() local
951 if (strncmp(f, p, len)) in tomoyo_path_matches_pattern()
954 p += len; in tomoyo_path_matches_pattern()
955 return tomoyo_path_matches_pattern2(f, p); in tomoyo_path_matches_pattern()
996 struct tomoyo_profile *p; in tomoyo_get_mode() local
1000 p = tomoyo_profile(ns, profile); in tomoyo_get_mode()
1001 mode = p->config[index]; in tomoyo_get_mode()
1003 mode = p->config[tomoyo_index2category[index] in tomoyo_get_mode()
1006 mode = p->default_config; in tomoyo_get_mode()