Lines Matching refs:newcon
555 static int compare_types(char *curcon, char *newcon, char **newtypecon) in compare_types() argument
567 conb = context_new(newcon); in compare_types()
598 char *newcon = NULL; in restorecon_sb() local
618 rc = selabel_lookup_raw(fc_sehandle, &newcon, "/", in restorecon_sb()
621 rc = selabel_lookup_raw(fc_sehandle, &newcon, lookup_path, in restorecon_sb()
648 rc = filespec_add(sb->st_ino, newcon, pathname); in restorecon_sb()
653 freecon(newcon); in restorecon_sb()
659 freecon(newcon); in restorecon_sb()
666 pathname, newcon); in restorecon_sb()
675 if (curcon == NULL || strcmp(curcon, newcon) != 0) { in restorecon_sb()
688 rc = compare_types(curcon, newcon, &newtypecon); in restorecon_sb()
693 freecon(newcon); in restorecon_sb()
694 newcon = newtypecon; in restorecon_sb()
701 if (lsetfilecon(pathname, newcon) < 0) in restorecon_sb()
710 pathname, curcon, newcon); in restorecon_sb()
716 pathname, curcon, newcon); in restorecon_sb()
719 pathname, newcon); in restorecon_sb()
727 freecon(newcon); in restorecon_sb()