Thread (2 messages) 2 messages, 2 authors, 2017-05-22

[PATCH v7 2/9] IB/core: Enforce PKey security on QPs

From: jmorris@namei.org (James Morris)
Date: 2017-05-22 00:13:16
Also in: linux-rdma, selinux

On Fri, 19 May 2017, Dan Jurgens wrote:
security/security.c                  | 385 ++++++++++++++++++++++
This looks wrong -- merge problem?

quoted hunk
+	if (pps->alt.state != IB_PORT_PKEY_NOT_VALID) {
+		get_pkey_and_subnet_prefix(&pps->alt,
+					   &pkey,
+					   &subnet_prefix);
+
+		ret = enforce_qp_pkey_security(pkey,
+					       subnet_prefix,
+					       sec);
+	}
+
+	if (ret)
+		goto out;
The above if/goto is unnecessary.
quoted hunk
+
+out:
+	return ret;
+}


-- 
James Morris
[off-list ref]

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help