Unverified Commit 8858a237 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12777 selinux: add the processing of the failure of avc_add_xperms_decision()

parents 121dd6cf 8b4f8428
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -938,7 +938,11 @@ static int avc_update_node(struct selinux_avc *avc,
		node->ae.avd.auditdeny &= ~perms;
		break;
	case AVC_CALLBACK_ADD_XPERMS:
		avc_add_xperms_decision(node, xpd);
		rc = avc_add_xperms_decision(node, xpd);
		if (rc) {
			avc_node_kill(avc, node);
			goto out_unlock;
		}
		break;
	}
	avc_node_replace(avc, node, orig);