Lines Matching refs:rootpath
50 static char *rootpath = NULL; variable
608 if (rootpath) { in restorecon_sb()
609 if (strncmp(rootpath, lookup_path, rootpathlen) != 0) { in restorecon_sb()
612 lookup_path, rootpath); in restorecon_sb()
618 if (rootpath != NULL && lookup_path[0] == '\0') in restorecon_sb()
1119 if (rootpath) in selinux_restorecon_set_alt_rootpath()
1120 free(rootpath); in selinux_restorecon_set_alt_rootpath()
1122 rootpath = strdup(alt_rootpath); in selinux_restorecon_set_alt_rootpath()
1123 if (!rootpath) { in selinux_restorecon_set_alt_rootpath()
1129 len = strlen(rootpath); in selinux_restorecon_set_alt_rootpath()
1130 while (len && (rootpath[len - 1] == '/')) in selinux_restorecon_set_alt_rootpath()
1131 rootpath[--len] = '\0'; in selinux_restorecon_set_alt_rootpath()