Lines Matching refs:curcon
557 static int compare_types(char *curcon, char *newcon, char **newtypecon) in compare_types() argument
564 cona = context_new(curcon); in compare_types()
601 char *curcon = NULL; in restorecon_sb() local
670 if (lgetfilecon_raw(pathname, &curcon) < 0) { in restorecon_sb()
674 curcon = NULL; in restorecon_sb()
677 if (curcon == NULL || strcmp(curcon, newcon) != 0) { in restorecon_sb()
678 if (!flags->set_specctx && curcon && in restorecon_sb()
679 (is_context_customizable(curcon) > 0)) { in restorecon_sb()
683 pathname, curcon); in restorecon_sb()
688 if (!flags->set_specctx && curcon) { in restorecon_sb()
690 rc = compare_types(curcon, newcon, &newtypecon); in restorecon_sb()
712 pathname, curcon, newcon); in restorecon_sb()
715 if (curcon) in restorecon_sb()
718 pathname, curcon, newcon); in restorecon_sb()
728 freecon(curcon); in restorecon_sb()