summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/mwcollect/files/mwcollect-3.0.1-capacity.patch')
-rw-r--r--net-analyzer/mwcollect/files/mwcollect-3.0.1-capacity.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-analyzer/mwcollect/files/mwcollect-3.0.1-capacity.patch b/net-analyzer/mwcollect/files/mwcollect-3.0.1-capacity.patch
new file mode 100644
index 000000000000..880f14fbd601
--- /dev/null
+++ b/net-analyzer/mwcollect/files/mwcollect-3.0.1-capacity.patch
@@ -0,0 +1,11 @@
+--- src/core/mwcollect.cpp.old 2005-11-01 01:51:39.000000000 +0900
++++ src/core/mwcollect.cpp 2005-11-01 01:51:52.000000000 +0900
+@@ -284,7 +284,7 @@
+ #ifdef LINUX_FLAVOURED
+ { // we still may need to bind ports < 1024 / create raw sockets
+ cap_t capCapabilities = cap_init();
+- cap_value_t cvValues[] = { CAP_NET_RAW, CAP_NET_BIND_SERVICE, };
++ cap_value_t cvValues[] = { CAP_NET_RAW, CAP_NET_BIND_SERVICE, CAP_SETUID, };
+
+ cap_set_flag(capCapabilities, CAP_PERMITTED, sizeof(cvValues) / sizeof(cap_value_t), cvValues, CAP_SET);
+ cap_set_flag(capCapabilities, CAP_INHERITABLE, sizeof(cvValues) / sizeof(cap_value_t), cvValues, CAP_SET);