security.c (d68c51e0b377838dd31b37707813bb62089f399c) | security.c (d291f1a6523292d916fe1659c67f6db061fbd1b5) |
---|---|
1/* 2 * Security plug functions 3 * 4 * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com> 5 * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> 6 * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com> | 1/* 2 * Security plug functions 3 * 4 * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com> 5 * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> 6 * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com> |
7 * Copyright (C) 2016 Mellanox Technologies |
|
7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 */ 13 14#include <linux/capability.h> --- 1495 unchanged lines hidden (view full) --- 1510int security_tun_dev_open(void *security) 1511{ 1512 return call_int_hook(tun_dev_open, 0, security); 1513} 1514EXPORT_SYMBOL(security_tun_dev_open); 1515 1516#endif /* CONFIG_SECURITY_NETWORK */ 1517 | 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 */ 14 15#include <linux/capability.h> --- 1495 unchanged lines hidden (view full) --- 1511int security_tun_dev_open(void *security) 1512{ 1513 return call_int_hook(tun_dev_open, 0, security); 1514} 1515EXPORT_SYMBOL(security_tun_dev_open); 1516 1517#endif /* CONFIG_SECURITY_NETWORK */ 1518 |
1519#ifdef CONFIG_SECURITY_INFINIBAND 1520 1521int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) 1522{ 1523 return call_int_hook(ib_pkey_access, 0, sec, subnet_prefix, pkey); 1524} 1525EXPORT_SYMBOL(security_ib_pkey_access); 1526 1527int security_ib_alloc_security(void **sec) 1528{ 1529 return call_int_hook(ib_alloc_security, 0, sec); 1530} 1531EXPORT_SYMBOL(security_ib_alloc_security); 1532 1533void security_ib_free_security(void *sec) 1534{ 1535 call_void_hook(ib_free_security, sec); 1536} 1537EXPORT_SYMBOL(security_ib_free_security); 1538#endif /* CONFIG_SECURITY_INFINIBAND */ 1539 |
|
1518#ifdef CONFIG_SECURITY_NETWORK_XFRM 1519 1520int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, 1521 struct xfrm_user_sec_ctx *sec_ctx, 1522 gfp_t gfp) 1523{ 1524 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); 1525} --- 139 unchanged lines hidden --- | 1540#ifdef CONFIG_SECURITY_NETWORK_XFRM 1541 1542int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, 1543 struct xfrm_user_sec_ctx *sec_ctx, 1544 gfp_t gfp) 1545{ 1546 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); 1547} --- 139 unchanged lines hidden --- |