Searched defs:skb (Results 1 - 11 of 11) sorted by relevance

/security/selinux/include/
H A Dxfrm.h38 int selinux_xfrm_sock_rcv_skb(u32 sk_sid, struct sk_buff *skb,
40 int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb,
42 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
43 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid);
62 static inline int selinux_xfrm_sock_rcv_skb(u32 sk_sid, struct sk_buff *skb, argument
68 static inline int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb, argument
75 static inline int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, argument
86 static inline int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) argument
H A Dnetlabel.h43 void selinux_netlbl_err(struct sk_buff *skb, int error, int gateway);
48 int selinux_netlbl_skbuff_getsid(struct sk_buff *skb,
52 int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
60 struct sk_buff *skb,
74 static inline void selinux_netlbl_err(struct sk_buff *skb, argument
93 static inline int selinux_netlbl_skbuff_getsid(struct sk_buff *skb, argument
102 static inline int selinux_netlbl_skbuff_setsid(struct sk_buff *skb, argument
130 struct sk_buff *skb,
129 selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad) argument
/security/selinux/
H A Dnetlink.c74 struct sk_buff *skb; local
79 skb = nlmsg_new(len, GFP_USER);
80 if (!skb)
83 tmp = skb->tail;
84 nlh = nlmsg_put(skb, 0, 0, msgtype, len, 0);
88 nlh->nlmsg_len = skb->tail - tmp;
89 NETLINK_CB(skb).dst_group = SELNLGRP_AVC;
90 netlink_broadcast(selnl, skb, 0, SELNLGRP_AVC, GFP_USER);
95 kfree_skb(skb);
H A Dnetlabel.c46 * @skb: the packet
56 static int selinux_netlbl_sidlookup_cached(struct sk_buff *skb, argument
66 netlbl_cache_add(skb, secattr);
143 * @skb: the packet
154 void selinux_netlbl_err(struct sk_buff *skb, int error, int gateway) argument
156 netlbl_skbuff_err(skb, error, gateway);
190 * @skb: the packet
201 int selinux_netlbl_skbuff_getsid(struct sk_buff *skb, argument
215 rc = netlbl_skbuff_getattr(skb, family, &secattr);
217 rc = selinux_netlbl_sidlookup_cached(skb,
237 selinux_netlbl_skbuff_setsid(struct sk_buff *skb, u16 family, u32 sid) argument
369 selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad) argument
[all...]
H A Dxfrm.c213 static u32 selinux_xfrm_skb_sid_egress(struct sk_buff *skb) argument
215 struct dst_entry *dst = skb_dst(skb);
227 static int selinux_xfrm_skb_sid_ingress(struct sk_buff *skb, argument
231 struct sec_path *sp = skb->sp;
262 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall) argument
264 if (skb == NULL) {
268 return selinux_xfrm_skb_sid_ingress(skb, sid, ckall);
271 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) argument
275 rc = selinux_xfrm_skb_sid_ingress(skb, sid, 0);
277 *sid = selinux_xfrm_skb_sid_egress(skb);
404 selinux_xfrm_sock_rcv_skb(u32 sk_sid, struct sk_buff *skb, struct common_audit_data *ad) argument
437 selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb, struct common_audit_data *ad, u8 proto) argument
[all...]
H A Dhooks.c3781 static int selinux_parse_skb_ipv4(struct sk_buff *skb, argument
3787 offset = skb_network_offset(skb);
3788 ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph);
3811 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
3827 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph);
3843 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph);
3862 static int selinux_parse_skb_ipv6(struct sk_buff *skb, argument
3870 offset = skb_network_offset(skb);
3871 ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h);
3881 offset = ipv6_skip_exthdr(skb, offse
3935 selinux_parse_skb(struct sk_buff *skb, struct common_audit_data *ad, char **_addrp, int src, u8 *proto) argument
3991 selinux_skb_peerlbl_sid(struct sk_buff *skb, u16 family, u32 *sid) argument
4421 selinux_sock_rcv_skb_compat(struct sock *sk, struct sk_buff *skb, u16 family) argument
4454 selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
4557 selinux_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) argument
4642 selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req) argument
4680 selinux_inet_conn_established(struct sock *sk, struct sk_buff *skb) argument
4692 selinux_skb_owned_by(struct sk_buff *skb, struct sock *sk) argument
4802 selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb) argument
4839 selinux_ip_forward(struct sk_buff *skb, const struct net_device *indev, u16 family) argument
4896 selinux_ipv4_forward(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
4906 selinux_ipv6_forward(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
4916 selinux_ip_output(struct sk_buff *skb, u16 family) argument
4958 selinux_ipv4_output(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
4967 selinux_ip_postroute_compat(struct sk_buff *skb, int ifindex, u16 family) argument
5000 selinux_ip_postroute(struct sk_buff *skb, const struct net_device *outdev, u16 family) argument
5135 selinux_ipv4_postroute(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
5145 selinux_ipv6_postroute(const struct nf_hook_ops *ops, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int (*okfn)(struct sk_buff *)) argument
5157 selinux_netlink_send(struct sock *sk, struct sk_buff *skb) argument
[all...]
/security/
H A Dlsm_audit.c35 * ipv4_skb_to_auditdata : fill auditdata from skb
36 * @skb : the skb
42 int ipv4_skb_to_auditdata(struct sk_buff *skb, argument
48 ih = ip_hdr(skb);
63 struct tcphdr *th = tcp_hdr(skb);
72 struct udphdr *uh = udp_hdr(skb);
81 struct dccp_hdr *dh = dccp_hdr(skb);
90 struct sctphdr *sh = sctp_hdr(skb);
104 * ipv6_skb_to_auditdata : fill auditdata from skb
111 ipv6_skb_to_auditdata(struct sk_buff *skb, struct common_audit_data *ad, u8 *proto) argument
[all...]
H A Dcommoncap.c60 int cap_netlink_send(struct sock *sk, struct sk_buff *skb) argument
H A Dcapability.c676 static int cap_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
689 struct sk_buff *skb, u32 *secid)
715 static int cap_inet_conn_request(struct sock *sk, struct sk_buff *skb, argument
726 static void cap_inet_conn_established(struct sock *sk, struct sk_buff *skb) argument
777 static void cap_skb_owned_by(struct sk_buff *skb, struct sock *sk) argument
840 static int cap_xfrm_decode_session(struct sk_buff *skb, u32 *fl, int ckall) argument
688 cap_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) argument
H A Dsecurity.c1106 int security_netlink_send(struct sock *sk, struct sk_buff *skb) argument
1108 return security_ops->netlink_send(sk, skb);
1235 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
1237 return security_ops->socket_sock_rcv_skb(sk, skb);
1247 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) argument
1249 return security_ops->socket_getpeersec_dgram(sock, skb, secid);
1288 struct sk_buff *skb, struct request_sock *req)
1290 return security_ops->inet_conn_request(sk, skb, req);
1301 struct sk_buff *skb)
1303 security_ops->inet_conn_established(sk, skb);
1287 security_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req) argument
1300 security_inet_conn_established(struct sock *sk, struct sk_buff *skb) argument
1360 security_skb_owned_by(struct sk_buff *skb, struct sock *sk) argument
1430 security_xfrm_decode_session(struct sk_buff *skb, u32 *secid) argument
1435 security_skb_classify_flow(struct sk_buff *skb, struct flowi *fl) argument
[all...]
/security/smack/
H A Dsmack_lsm.c3473 static int smk_skb_to_addr_ipv6(struct sk_buff *skb, struct sockaddr_in6 *sip) argument
3487 offset = skb_network_offset(skb);
3488 ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h);
3495 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off);
3502 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
3507 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph);
3512 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph);
3523 * @skb: packet
3527 static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
3545 rc = netlbl_skbuff_getattr(skb, s
3626 smack_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid) argument
3701 smack_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req) argument
[all...]

Completed in 1496 milliseconds