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

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

parents 42d61847 a6748458
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -927,7 +927,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);