From 178522b237312e50ea2dc2facd9cacb3b7b66788 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 17 Apr 2017 15:02:45 +0900 Subject: [PATCH] Updated tayga.conf file - Change the right to network_fw from root - Change the path of data directory Change-Id: Ib084597608ccb41ffa914b002793e81eef304c04 Signed-off-by: Seonah Moon --- packaging/tayga.spec | 6 ++++-- tayga.conf | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/tayga.spec b/packaging/tayga.spec index c86f0de..6975bce 100644 --- a/packaging/tayga.spec +++ b/packaging/tayga.spec @@ -8,7 +8,6 @@ URL: http://www.litech.org/tayga/ Source0: %{name}-%{version}.tar.gz BuildRequires: pkgconfig(libtzplatform-config) - %description TAYGA is an out-of-kernel stateless NAT64 implementation for Linux that uses the TUN driver to exchange IPv4 and IPv6 packets with the kernel. @@ -29,9 +28,12 @@ cp tayga %{buildroot}%{_sbindir}/tayga mkdir -p %{buildroot}%{TZ_SYS_ETC}/tayga/ cp tayga.conf %{buildroot}%{TZ_SYS_ETC}/tayga/tayga.conf +%post +chown -R network_fw:network_fw %{TZ_SYS_ETC}/tayga + %files %manifest tayga.manifest %defattr(-,root,root,-) %license COPYING %{_sbindir}/tayga -%attr(644,-,-) %{TZ_SYS_ETC}/tayga/tayga.conf +%attr(644,network_fw,network_fw) %{TZ_SYS_ETC}/tayga/tayga.conf diff --git a/tayga.conf b/tayga.conf index 400ce19..adebedc 100644 --- a/tayga.conf +++ b/tayga.conf @@ -2,4 +2,4 @@ tun-device nat64 ipv4-addr 192.168.255.1 prefix 2001:db8:1:ffff::/96 dynamic-pool 192.168.255.0/24 -data-dir /var/db/tayga +data-dir /opt/etc/tayga -- 2.7.4