diff options
Diffstat (limited to 'sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff')
-rw-r--r-- | sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff b/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff new file mode 100644 index 000000000000..f536c10f17e6 --- /dev/null +++ b/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff @@ -0,0 +1,23 @@ +diff -ur checkpolicy-1.16/policy_parse.y checkpolicy-1.16-old/policy_parse.y +--- checkpolicy-1.16/policy_parse.y 2004-08-13 15:07:52.000000000 -0500 ++++ checkpolicy-1.16-old/policy_parse.y 2004-09-09 11:00:11.081574240 -0500 +@@ -2583,9 +2583,6 @@ + if (policyvers < POLICYDB_VERSION_NLCLASS && + (cladatum->value >= SECCLASS_NETLINK_ROUTE_SOCKET && + cladatum->value <= SECCLASS_NETLINK_DNRT_SOCKET)) { +- sprintf(errormsg, "remapping class %s to netlink_socket " +- "for policy version %d", id, policyvers); +- yywarn(errormsg); + classvalue = SECCLASS_NETLINK_SOCKET; + suppress = 1; + } else +@@ -2761,9 +2758,6 @@ + if (policyvers < POLICYDB_VERSION_NLCLASS && + (cladatum->value >= SECCLASS_NETLINK_ROUTE_SOCKET && + cladatum->value <= SECCLASS_NETLINK_DNRT_SOCKET)) { +- sprintf(errormsg, "remapping class %s to netlink_socket " +- "for policy version %d", id, policyvers); +- yywarn(errormsg); + classvalue = SECCLASS_NETLINK_SOCKET; + suppress = 1; + } else |