Lines Matching defs:cap
1320 * @cap: The capability to use
1324 * message has has the capability @cap in the user namespace @user_ns.
1327 struct user_namespace *user_ns, int cap)
1330 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) &&
1331 ns_capable(user_ns, cap);
1339 * @cap: The capability to use
1343 * message has has the capability @cap in the user namespace @user_ns.
1346 struct user_namespace *user_ns, int cap)
1348 return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap);
1355 * @cap: The capability to use
1359 * message has has the capability @cap in all user namespaces.
1361 bool netlink_capable(const struct sk_buff *skb, int cap)
1363 return netlink_ns_capable(skb, &init_user_ns, cap);
1370 * @cap: The capability to use
1374 * message has has the capability @cap over the network namespace of
1377 bool netlink_net_capable(const struct sk_buff *skb, int cap)
1379 return netlink_ns_capable(skb, sock_net(skb->sk)->user_ns, cap);