selinux/libsepol/src
Ondrej Mosnacek 94ebccf534 libsepol: add missing ibendport port validity check
The kernel checks if the port is in the range 1-255 when loading an
ibenportcon rule. Add the same check to libsepol.

Fixes: 118c0cd103 ("libsepol: Add ibendport ocontext handling")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2018-10-25 14:06:45 -07:00
..
assertion.c libsepol: Fix neverallow bug when checking conditional policy 2017-06-14 11:05:11 -04:00
av_permissions.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
avrule_block.c libsepol: Clean up scope handling 2017-06-01 12:51:51 -04:00
avtab.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
boolean_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
boolean_record.c libsepol: do not seg fault on sepol_*_key_free(NULL) 2017-04-07 11:04:43 -04:00
booleans.c libsepol: fix memory leak in sepol_bool_query() 2017-09-20 16:29:31 -04:00
conditional.c libsepol: detect duplicated symbol IDs 2016-11-29 08:43:41 -05:00
constraint.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
context_record.c libsepol: fix overflow and 0 length allocations 2016-08-17 09:58:19 -04:00
context.c libsepol: fix overflow and 0 length allocations 2016-08-17 09:58:19 -04:00
context.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
debug.c libsepol: fix __attribute__((unused)) annotations 2016-02-11 08:32:15 -05:00
debug.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
dso.h libsepol: Don't use symbol versioning for static object files 2015-04-15 15:20:20 -04:00
ebitmap.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
expand.c libsepol: destroy the expanded level when mls_semantic_level_expand() fails 2017-06-12 09:32:37 -04:00
genbools.c libsepol: constify sepol_genbools()'s boolpath parameter 2017-03-29 10:26:44 -04:00
genusers.c libsepol: ensure the level context is not empty 2018-04-17 13:55:57 -07:00
handle.c libsepol: libsemanage: policycoreutils: Create a new preserve_tunables flag in sepol_handle_t. 2011-09-16 11:54:02 -04:00
handle.h libsepol: libsemanage: policycoreutils: Create a new preserve_tunables flag in sepol_handle_t. 2011-09-16 11:54:02 -04:00
hashtab.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
hierarchy.c libsepol: Change logic of bounds checking 2016-05-04 13:29:56 -04:00
ibendport_internal.h semanage: Update semanage to allow runtime labeling of ibendports 2017-05-23 16:20:55 -04:00
ibendport_record.c libsepol: Prevent freeing unitialized value in ibendport handling 2018-03-19 12:39:20 -04:00
ibendports.c libsepol: do not use handle when it is marked unused 2017-06-01 12:36:38 -04:00
ibpkey_internal.h semanage: Update semanage to allow runtime labeling of Infiniband Pkeys 2017-05-23 16:20:55 -04:00
ibpkey_record.c semanage: Update semanage to allow runtime labeling of Infiniband Pkeys 2017-05-23 16:20:55 -04:00
ibpkeys.c libsepol: do not use handle when it is marked unused 2017-06-01 12:36:38 -04:00
iface_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
iface_record.c libsepol: do not seg fault on sepol_*_key_free(NULL) 2017-04-07 11:04:43 -04:00
interfaces.c libsepol: fix __attribute__((unused)) annotations 2016-02-11 08:32:15 -05:00
kernel_to_cil.c libsepol: Check that initial sid indexes are within the valid range 2018-10-15 13:39:15 -04:00
kernel_to_common.c libsepol: Rename kernel_to_common.c stack functions 2018-10-15 13:39:15 -04:00
kernel_to_common.h libsepol: Add two new Xen initial SIDs 2018-10-15 13:39:15 -04:00
kernel_to_conf.c libsepol: Check that initial sid indexes are within the valid range 2018-10-15 13:39:15 -04:00
libsepol.map.in libsepol: Export sepol_polcap_getnum/name functions 2018-03-15 13:52:55 -07:00
libsepol.pc.in libsepol: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 15:59:36 +01:00
link.c libsepol: Expand attributes with TYPE_FLAGS_EXPAND_ATTR_TRUE set 2017-06-05 13:41:21 -04:00
Makefile libsepol: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 15:59:36 +01:00
mls.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
mls.h checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
module_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
module_to_cil.c libsepol: Check that initial sid indexes are within the valid range 2018-10-15 13:39:15 -04:00
module.c libsepol: fix unknown magic section number error message 2016-11-23 12:31:55 -05:00
node_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
node_record.c Fix minor typos 2018-06-30 20:28:25 +02:00
nodes.c libsepol: Add missing return to sepol_node_query() 2016-07-12 13:48:05 -04:00
polcaps.c libsepol: Define nnp_nosuid_transition policy capability 2017-07-28 15:42:36 -04:00
policydb_convert.c libsepol: Fix memory leak issues found by Klocwork 2013-02-05 20:14:50 -05:00
policydb_internal.h libsepol: fix most gcc -Wwrite-strings warnings 2014-10-02 09:56:15 -04:00
policydb_public.c libsepol: add function to libsepol for setting target_platform 2014-08-26 08:02:16 -04:00
policydb.c libsepol: add missing ibendport port validity check 2018-10-25 14:06:45 -07:00
port_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
port_record.c selinux: Add support for the SCTP portcon keyword 2018-03-19 12:34:29 -04:00
ports.c selinux: Add support for the SCTP portcon keyword 2018-03-19 12:34:29 -04:00
private.h libsepol: port str_read from kernel 2016-08-19 13:18:02 -04:00
roles.c libsepol: use constant keys in hashtab functions 2017-01-19 08:46:19 -05:00
services.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
sidtab.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
symtab.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
user_internal.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
user_record.c libsepol: do not seg fault on sepol_*_key_free(NULL) 2017-04-07 11:04:43 -04:00
users.c libsepol: use constant keys in hashtab functions 2017-01-19 08:46:19 -05:00
util.c libsepol: sepol_av_to_string: clear static buffer 2016-11-29 11:20:43 -05:00
write.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00