Add TO Golang setcap to RPM to allow low port

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9e67e6ab
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9e67e6ab
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9e67e6ab

Branch: refs/heads/master
Commit: 9e67e6aba6de8b7daf2d93ca661d301b31d6ebb4
Parents: 9b9b3fb
Author: Robert Butts <robert.o.bu...@gmail.com>
Authored: Fri Jul 21 19:46:33 2017 -0600
Committer: Dewayne Richardson <dewr...@apache.org>
Committed: Thu Aug 10 09:46:03 2017 -0600

----------------------------------------------------------------------
 traffic_ops/build/traffic_ops.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9e67e6ab/traffic_ops/build/traffic_ops.spec
----------------------------------------------------------------------
diff --git a/traffic_ops/build/traffic_ops.spec 
b/traffic_ops/build/traffic_ops.spec
index 3c899fe..66d2fd9 100644
--- a/traffic_ops/build/traffic_ops.spec
+++ b/traffic_ops/build/traffic_ops.spec
@@ -34,7 +34,7 @@ Packager:         daniel_kirkwood at Cable dot Comcast dot com
 AutoReqProv:      no
 Requires:         cpanminus, expat-devel, gcc-c++, libcurl, libpcap-devel, 
mkisofs, tar
 Requires:         openssl-devel, perl, perl-core, perl-DBD-Pg, perl-DBI, 
perl-Digest-SHA1
-Requires:         libidn-devel, libcurl-devel
+Requires:         libidn-devel, libcurl-devel, libcap
 Requires:         postgresql96 >= 9.6.2 , postgresql96-devel >= 9.6.2
 Requires:         perl-JSON, perl-libwww-perl, perl-Test-CPAN-Meta, 
perl-WWW-Curl, perl-TermReadKey
 Requires(pre):    /usr/sbin/useradd, /usr/bin/getent
@@ -165,6 +165,7 @@ Built: %(date) by %{getenv: USER}
     fi
     /bin/chown -R %{TRAFFIC_OPS_USER}:%{TRAFFIC_OPS_GROUP} %{PACKAGEDIR}
     /bin/chown -R %{TRAFFIC_OPS_USER}:%{TRAFFIC_OPS_GROUP} 
%{TRAFFIC_OPS_LOG_DIR}
+    setcap cap_net_bind_service=+ep %{PACKAGEDIR}/app/bin/traffic_ops_golang
 
 %preun
 

Reply via email to