Lines Matching refs:secontext
1347 char *secontext = *secontextp; in pkgdir_selabel_lookup() local
1413 ctx = context_new(secontext); in pkgdir_selabel_lookup()
1422 secontext = context_str(ctx); in pkgdir_selabel_lookup()
1423 if (!secontext) in pkgdir_selabel_lookup()
1426 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup()
1429 rc = security_check_context(secontext); in pkgdir_selabel_lookup()
1434 *secontextp = strdup(secontext); in pkgdir_selabel_lookup()
1457 char *secontext = NULL; in restorecon_sb() local
1461 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb()
1478 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb()
1482 if (strcmp(oldsecontext, secontext) != 0) { in restorecon_sb()
1485 … "SELinux: Relabeling %s from %s to %s.\n", pathname, oldsecontext, secontext); in restorecon_sb()
1487 if (lsetfilecon(pathname, secontext) < 0) in restorecon_sb()
1496 freecon(secontext); in restorecon_sb()