Lines Matching refs:ctx_str
840 char *ctx_str = NULL; in selinux_android_setfilecon() local
847 rc = getfilecon(pkgdir, &ctx_str); in selinux_android_setfilecon()
851 ctx = context_new(ctx_str); in selinux_android_setfilecon()
852 orig_ctx_str = ctx_str; in selinux_android_setfilecon()
862 ctx_str = context_str(ctx); in selinux_android_setfilecon()
863 if (!ctx_str) in selinux_android_setfilecon()
866 rc = security_check_context(ctx_str); in selinux_android_setfilecon()
870 if (strcmp(ctx_str, orig_ctx_str)) { in selinux_android_setfilecon()
871 rc = setfilecon(pkgdir, ctx_str); in selinux_android_setfilecon()
910 char *orig_ctx_str = NULL, *ctx_str; in selinux_android_setcontext() local
917 rc = getcon(&ctx_str); in selinux_android_setcontext()
921 ctx = context_new(ctx_str); in selinux_android_setcontext()
922 orig_ctx_str = ctx_str; in selinux_android_setcontext()
932 ctx_str = context_str(ctx); in selinux_android_setcontext()
933 if (!ctx_str) in selinux_android_setcontext()
936 rc = security_check_context(ctx_str); in selinux_android_setcontext()
940 if (strcmp(ctx_str, orig_ctx_str)) { in selinux_android_setcontext()
941 rc = selinux_android_setcon(ctx_str); in selinux_android_setcontext()