Lines Matching refs:secontext
1229 char *secontext = *secontextp; in pkgdir_selabel_lookup() local
1295 ctx = context_new(secontext); in pkgdir_selabel_lookup()
1304 secontext = context_str(ctx); in pkgdir_selabel_lookup()
1305 if (!secontext) in pkgdir_selabel_lookup()
1308 if (!strcmp(secontext, *secontextp)) in pkgdir_selabel_lookup()
1311 rc = security_check_context(secontext); in pkgdir_selabel_lookup()
1316 *secontextp = strdup(secontext); in pkgdir_selabel_lookup()
1339 char *secontext = NULL; in restorecon_sb() local
1343 if (selabel_lookup(fc_sehandle, &secontext, pathname, sb->st_mode) < 0) in restorecon_sb()
1360 if (pkgdir_selabel_lookup(pathname, seinfo, uid, &secontext) < 0) in restorecon_sb()
1364 if (strcmp(oldsecontext, secontext) != 0) { in restorecon_sb()
1367 … "SELinux: Relabeling %s from %s to %s.\n", pathname, oldsecontext, secontext); in restorecon_sb()
1369 if (lsetfilecon(pathname, secontext) < 0) in restorecon_sb()
1378 freecon(secontext); in restorecon_sb()