diff options
author | Daniel Jurgens <danielj@mellanox.com> | 2017-05-19 14:48:56 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-05-23 18:27:41 +0200 |
commit | 3a976fa6767f3edebbf43839b686efaf71b8dee1 (patch) | |
tree | b3f4df141cd3dfa1997337302019e18344270ccf /security/selinux/include/objsec.h | |
parent | selinux: Create policydb version for Infiniband support (diff) | |
download | linux-3a976fa6767f3edebbf43839b686efaf71b8dee1.tar.xz linux-3a976fa6767f3edebbf43839b686efaf71b8dee1.zip |
selinux: Allocate and free infiniband security hooks
Implement and attach hooks to allocate and free Infiniband object
security structures.
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/objsec.h')
-rw-r--r-- | security/selinux/include/objsec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h index c03cdcd12a3b..b7f15f7dc9af 100644 --- a/security/selinux/include/objsec.h +++ b/security/selinux/include/objsec.h @@ -10,6 +10,7 @@ * * Copyright (C) 2001,2002 Networks Associates Technology, Inc. * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com> + * Copyright (C) 2016 Mellanox Technologies * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -139,6 +140,10 @@ struct key_security_struct { u32 sid; /* SID of key */ }; +struct ib_security_struct { + u32 sid; /* SID of the queue pair or MAD agent */ +}; + extern unsigned int selinux_checkreqprot; #endif /* _SELINUX_OBJSEC_H_ */ |