Lines Matching defs:path
21 static int printmatchpathcon(struct selabel_handle *hnd, const char *path, int header, int mode, int notrans)
27 rc = selabel_lookup_raw(hnd, &buf, path, mode);
29 rc = selabel_lookup(hnd, &buf, path, mode);
35 fprintf(stderr, "selabel_lookup(%s) failed: %s\n", path,
41 printf("%s\t%s\n", path, buf);
141 char *path = argv[i];
142 int len = strlen(path);
143 if (len > 1 && path[len - 1 ] == '/')
144 path[len - 1 ] = '\0';
146 if (lstat(path, &buf) == 0)
152 rc = selinux_file_context_verify(path, mode);
162 printf("%s error: %s\n", path, strerror(errno));
165 printf("%s verified.\n", path);
170 rc = lgetfilecon_raw(path, &con);
172 rc = lgetfilecon(path, &con);
176 path, con);
177 printmatchpathcon(hnd, path, 0, mode, notrans);
183 printmatchpathcon(hnd, path, 0, mode, notrans);
187 error |= printmatchpathcon(hnd, path, header, mode, notrans);