backports: genetlink: add define for GENL_UNS_ADMIN_PERM
authorArend van Spriel <arend@broadcom.com>
Tue, 17 May 2016 09:01:51 +0000 (11:01 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 8 Jul 2016 19:31:15 +0000 (21:31 +0200)
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.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/net/genetlink.h

index 2e0bb3ecf5dd3cb42214b220a1cc54e93bdb7299..cf3e67c5cfd382c746147d2718dbf68586741235 100644 (file)
@@ -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 */