Re: [PATCH v3 1/2] capability: add cap_isidentical

From: Alexey Dobriyan <hidden>
Date: 2023-02-28 20:04:25
Also in: linux-fsdevel, lkml

+static inline bool cap_isidentical(const kernel_cap_t a, const kernel_cap_t b)
+{
+	unsigned __capi;
+	CAP_FOR_EACH_U32(__capi) {
+		if (a.cap[__capi] != b.cap[__capi])
+			return false;
+	}
+	return true;
+}
capability_eq() maybe? "isidentical" is kind of ugly.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help