From: jooseong lee Date: Wed, 19 Oct 2016 04:16:07 +0000 (+0900) Subject: Disable nether.service temporarily X-Git-Tag: submit/tizen/20161019.043044^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66b8b92ac00109fbf1cb7e9f03b0ce3d8bcd545b;p=platform%2Fcore%2Fsecurity%2Fnether.git Disable nether.service temporarily When enabling CONFIG_SECURITY_SMACK_NETFILTER in Linux kernel, we have unexpected behavior of Smack. Disable nether.service until we find the proper solution. Change-Id: I8d6a85962b5fcbacc57344d3f5453f98de018725 Signed-off-by: jooseong lee --- diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index 26ddd72..8cabec6 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -18,10 +18,10 @@ MESSAGE(STATUS "Installing config files") -CONFIGURE_FILE(systemd/nether.service.in systemd/nether.service) +#CONFIGURE_FILE(systemd/nether.service.in systemd/nether.service) INSTALL(FILES file.policy DESTINATION ${SYSCONF_INSTALL_DIR}/nether) INSTALL(FILES cynara.policy DESTINATION ${SYSCONF_INSTALL_DIR}/nether) INSTALL(FILES nether.rules DESTINATION ${SYSCONF_INSTALL_DIR}/nether) -INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}) -INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}/multi-user.target.wants) +#INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}) +#INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}/multi-user.target.wants) diff --git a/packaging/nether.spec b/packaging/nether.spec index e19c081..ed19788 100755 --- a/packaging/nether.spec +++ b/packaging/nether.spec @@ -20,8 +20,8 @@ This is a network privilege enforcing service. %config %{_sysconfdir}/nether/file.policy %config %{_sysconfdir}/nether/nether.rules %config %{_sysconfdir}/nether/cynara.policy -%{_unitdir}/nether.service -%{_unitdir}/multi-user.target.wants/nether.service +#%{_unitdir}/nether.service +#%{_unitdir}/multi-user.target.wants/nether.service %prep %setup -q @@ -50,19 +50,19 @@ rm -rf %{buildroot} %post # Refresh systemd services list after installation systemctl daemon-reload || : -if [ $1 == 1 ]; then - systemctl start nether.service || : -fi -if [ $1 == 2 ]; then - systemctl restart nether.service || : -fi +#if [ $1 == 1 ]; then +# systemctl start nether.service || : +#fi +#if [ $1 == 2 ]; then +# systemctl restart nether.service || : +#fi %preun # Stop the service before uninstall -if [ $1 == 0 ]; then - systemctl stop nether.service || : -fi +#if [ $1 == 0 ]; then +# systemctl stop nether.service || : +#fi %postun # Refresh systemd services list after uninstall/upgrade -systemctl daemon-reload || : +#systemctl daemon-reload || :