Lines Matching refs:curcon
547 static int compare_types(char *curcon, char *newcon, char **newtypecon) in compare_types() argument
554 cona = context_new(curcon); in compare_types()
591 char *curcon = NULL; in restorecon_sb() local
660 if (lgetfilecon_raw(pathname, &curcon) < 0) { in restorecon_sb()
664 curcon = NULL; in restorecon_sb()
667 if (strcmp(curcon, newcon) != 0) { in restorecon_sb()
668 if (!flags->set_specctx && curcon && in restorecon_sb()
669 (is_context_customizable(curcon) > 0)) { in restorecon_sb()
673 pathname, curcon); in restorecon_sb()
678 if (!flags->set_specctx && curcon) { in restorecon_sb()
680 rc = compare_types(curcon, newcon, &newtypecon); in restorecon_sb()
702 pathname, curcon, newcon); in restorecon_sb()
705 if (curcon) in restorecon_sb()
708 pathname, curcon, newcon); in restorecon_sb()
718 freecon(curcon); in restorecon_sb()