Skip to contentSkip to conversation

backports: genetlink: add define for GENL_UNS_ADMIN_PERM

PATCH New Arend van Spriel 1 participant 1 message May 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 backports: genetlink: add define for GENL_UNS_ADMIN_PERM

Since commit 5ed071ec9992 ("nl80211: Allow privileged operations from user namespaces") the definition GENL_UNS_ADMIN_PERM is used by nl80211.c. Add definition mapping to GENL_ADMIN_PERM for kernel not having it thus reverting to previous permission check.

---
change log:
- v2: map definition to GENL_ADMIN_PERM.

---
 backport/backport-include/net/genetlink.h | 4 ++++
 1 file changed, 4 insertions(+)
backport/backport-include/net/genetlink.h +4 -0
index 2e0bb3e..cf3e67c 100644
@@ -154,4 +154,8 @@ backport_genlmsg_multicast_allns(struct genl_family *family,
 #endif /* < 4.4 */
 #endif /* < 3.13 */
 
+#ifndef GENL_UNS_ADMIN_PERM
+#define GENL_UNS_ADMIN_PERM	GENL_ADMIN_PERM
+#endif
+
 #endif /* __BACKPORT_NET_GENETLINK_H */
Signature · 4 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in