|
|
7611aa0 |
diff --exclude-from=exclude -N -u -r nsalibsepol/src/libsepol.map libsepol-1.11.1/src/libsepol.map
|
|
|
7611aa0 |
--- nsalibsepol/src/libsepol.map 2005-11-15 08:06:55.000000000 -0500
|
|
|
7611aa0 |
+++ libsepol-1.11.1/src/libsepol.map 2005-12-27 11:07:34.000000000 -0500
|
|
|
7611aa0 |
@@ -4,6 +4,7 @@
|
|
|
7611aa0 |
sepol_bool_*; sepol_genbools*;
|
|
|
7611aa0 |
sepol_context*; sepol_check_context;
|
|
|
7611aa0 |
sepol_iface_*;
|
|
|
7611aa0 |
+ sepol_port_*;
|
|
|
7611aa0 |
sepol_user_*; sepol_genusers; sepol_set_delusers;
|
|
|
7611aa0 |
sepol_msg_*; sepol_debug;
|
|
|
7611aa0 |
sepol_handle_*;
|
|
|
7611aa0 |
diff --exclude-from=exclude -N -u -r nsalibsepol/src/port_record.c libsepol-1.11.1/src/port_record.c
|
|
|
7611aa0 |
--- nsalibsepol/src/port_record.c 2005-11-01 17:32:59.000000000 -0500
|
|
|
7611aa0 |
+++ libsepol-1.11.1/src/port_record.c 2005-12-27 11:07:34.000000000 -0500
|
|
|
7611aa0 |
@@ -84,8 +84,8 @@
|
|
|
7611aa0 |
sepol_port_t* port,
|
|
|
7611aa0 |
sepol_port_key_t* key) {
|
|
|
5242278 |
|
|
|
7611aa0 |
- if ((port->low <= key->low) &&
|
|
|
7611aa0 |
- (port->high >= key->high) &&
|
|
|
7611aa0 |
+ if ((port->low == key->low) &&
|
|
|
7611aa0 |
+ (port->high == key->high) &&
|
|
|
7611aa0 |
(port->proto == key->proto))
|
|
|
7611aa0 |
return 0;
|
|
|
7611aa0 |
|
|
|
7611aa0 |
diff --exclude-from=exclude -N -u -r nsalibsepol/src/ports.c libsepol-1.11.1/src/ports.c
|
|
|
7611aa0 |
--- nsalibsepol/src/ports.c 2005-11-04 15:37:13.000000000 -0500
|
|
|
7611aa0 |
+++ libsepol-1.11.1/src/ports.c 2005-12-27 11:07:34.000000000 -0500
|
|
|
7611aa0 |
@@ -182,7 +182,7 @@
|
|
|
7611aa0 |
int low2 = c->u.port.low_port;
|
|
|
7611aa0 |
int high2 = c->u.port.high_port;
|
|
|
7611aa0 |
|
|
|
7611aa0 |
- if (proto == proto2 && low2 <= low && high2 >= high) {
|
|
|
7611aa0 |
+ if (proto == proto2 && low2 == low && high2 == high) {
|
|
|
7611aa0 |
*response = 1;
|
|
|
7611aa0 |
return STATUS_SUCCESS;
|
|
|
7611aa0 |
}
|
|
|
7611aa0 |
@@ -220,7 +220,7 @@
|
|
|
7611aa0 |
int low2 = c->u.port.low_port;
|
|
|
7611aa0 |
int high2 = c->u.port.high_port;
|
|
|
7611aa0 |
|
|
|
7611aa0 |
- if (proto == proto2 && low2 <= low && high2 >= high) {
|
|
|
7611aa0 |
+ if (proto == proto2 && low2 == low && high2 == high) {
|
|
|
7611aa0 |
if (port_to_record(handle, policydb, c, response) < 0)
|
|
|
7611aa0 |
goto err;
|
|
|
7611aa0 |
return STATUS_SUCCESS;
|
|
|
7611aa0 |
@@ -263,7 +263,7 @@
|
|
|
7611aa0 |
int low2 = c->u.port.low_port;
|
|
|
7611aa0 |
int high2 = c->u.port.high_port;
|
|
|
7611aa0 |
|
|
|
7611aa0 |
- if (proto == proto2 && low2 <= low && high2 >= high) {
|
|
|
7611aa0 |
+ if (proto == proto2 && low2 == low && high2 == high) {
|
|
|
7611aa0 |
|
|
|
7611aa0 |
/* Replace */
|
|
|
7611aa0 |
port->next = c->next;
|