Skip to contentSkip to conversation

capability: add cap_isidentical

PATCH Alexey Dobriyan 1 participant 1 message Feb 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Review

Quoted 9 lines
(quoted diff) +9 -0
+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.