af_key.c (215a2dd3b43e0dc425e81d21de9d961416b1dad4) | af_key.c (16bec31db751030171b31d7767fa3a5bdbe980ea) |
---|---|
1/* 2 * net/key/af_key.c An implementation of PF_KEYv2 sockets. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 1453 unchanged lines hidden (view full) --- 1462 1463 if (xfrm_state_kern(x)) { 1464 err = -EPERM; 1465 goto out; 1466 } 1467 1468 err = xfrm_state_delete(x); 1469 | 1/* 2 * net/key/af_key.c An implementation of PF_KEYv2 sockets. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 1453 unchanged lines hidden (view full) --- 1462 1463 if (xfrm_state_kern(x)) { 1464 err = -EPERM; 1465 goto out; 1466 } 1467 1468 err = xfrm_state_delete(x); 1469 |
1470 xfrm_audit_log(audit_get_loginuid(current->audit_context), 0, 1471 AUDIT_MAC_IPSEC_DELSA, err ? 0 : 1, NULL, x); 1472 | |
1473 if (err < 0) 1474 goto out; 1475 1476 c.seq = hdr->sadb_msg_seq; 1477 c.pid = hdr->sadb_msg_pid; 1478 c.event = XFRM_MSG_DELSA; 1479 km_state_notify(x, &c); 1480out: | 1470 if (err < 0) 1471 goto out; 1472 1473 c.seq = hdr->sadb_msg_seq; 1474 c.pid = hdr->sadb_msg_pid; 1475 c.event = XFRM_MSG_DELSA; 1476 km_state_notify(x, &c); 1477out: |
1478 xfrm_audit_log(audit_get_loginuid(current->audit_context), 0, 1479 AUDIT_MAC_IPSEC_DELSA, err ? 0 : 1, NULL, x); |
|
1481 xfrm_state_put(x); 1482 1483 return err; 1484} 1485 1486static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr, void **ext_hdrs) 1487{ 1488 __u8 proto; --- 2272 unchanged lines hidden --- | 1480 xfrm_state_put(x); 1481 1482 return err; 1483} 1484 1485static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr, void **ext_hdrs) 1486{ 1487 __u8 proto; --- 2272 unchanged lines hidden --- |