diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 38316bb28b16..2a9d1a7fa1f8 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com> | 4 | * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com> |
5 | * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> | 5 | * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com> |
6 | * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com> | 6 | * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com> |
7 | * Copyright (C) 2016 Mellanox Technologies | ||
7 | * | 8 | * |
8 | * This program is free software; you can redistribute it and/or modify | 9 | * 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 | * it under the terms of the GNU General Public License as published by |
@@ -1515,6 +1516,27 @@ EXPORT_SYMBOL(security_tun_dev_open); | |||
1515 | 1516 | ||
1516 | #endif /* CONFIG_SECURITY_NETWORK */ | 1517 | #endif /* CONFIG_SECURITY_NETWORK */ |
1517 | 1518 | ||
1519 | #ifdef CONFIG_SECURITY_INFINIBAND | ||
1520 | |||
1521 | int 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 | } | ||
1525 | EXPORT_SYMBOL(security_ib_pkey_access); | ||
1526 | |||
1527 | int security_ib_alloc_security(void **sec) | ||
1528 | { | ||
1529 | return call_int_hook(ib_alloc_security, 0, sec); | ||
1530 | } | ||
1531 | EXPORT_SYMBOL(security_ib_alloc_security); | ||
1532 | |||
1533 | void security_ib_free_security(void *sec) | ||
1534 | { | ||
1535 | call_void_hook(ib_free_security, sec); | ||
1536 | } | ||
1537 | EXPORT_SYMBOL(security_ib_free_security); | ||
1538 | #endif /* CONFIG_SECURITY_INFINIBAND */ | ||
1539 | |||
1518 | #ifdef CONFIG_SECURITY_NETWORK_XFRM | 1540 | #ifdef CONFIG_SECURITY_NETWORK_XFRM |
1519 | 1541 | ||
1520 | int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, | 1542 | int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, |