Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56faadfd authored by Chris Lew's avatar Chris Lew Committed by Gerrit - the friendly Code Review server
Browse files

qrtr: Fix NET_BIND_SERVICE logic



Fix the capability logic to allow node id configuration be done from
clients that have NET_ADMIN or NET_BIND_SERVICE

Change-Id: I795bfe2d4a969348b1ff3ef6000feecc27b5bc53
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 75639baf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1078,7 +1078,7 @@ static int qrtr_addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
	struct ifaddrmsg *ifm;
	int rc;

	if (!netlink_capable(skb, CAP_NET_ADMIN) ||
	if (!netlink_capable(skb, CAP_NET_ADMIN) &&
	    !netlink_capable(skb, CAP_NET_BIND_SERVICE))
		return -EPERM;