Lines Matching refs:rootpath
46 static char *rootpath = NULL; variable
649 if (rootpath) { in restorecon_sb()
650 if (strncmp(rootpath, lookup_path, rootpathlen) != 0) { in restorecon_sb()
653 lookup_path, rootpath); in restorecon_sb()
667 if (rootpath != NULL && lookup_path[0] == '\0') in restorecon_sb()
1433 if (rootpath) in selinux_restorecon_set_alt_rootpath()
1434 free(rootpath); in selinux_restorecon_set_alt_rootpath()
1436 rootpath = strdup(alt_rootpath); in selinux_restorecon_set_alt_rootpath()
1437 if (!rootpath) { in selinux_restorecon_set_alt_rootpath()
1443 len = strlen(rootpath); in selinux_restorecon_set_alt_rootpath()
1444 while (len && (rootpath[len - 1] == '/')) in selinux_restorecon_set_alt_rootpath()
1445 rootpath[--len] = '\0'; in selinux_restorecon_set_alt_rootpath()