Home
last modified time | relevance | path

Searched refs:curcon (Results 1 – 1 of 1) sorted by relevance

/external/selinux/libselinux/src/
Dselinux_restorecon.c557 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()
[all …]