Refactoring auth-fw.service and auth-fw-OOO.socket 47/210647/5 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.023240 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090840 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113445 accepted/tizen/unified/20190814.065145 submit/tizen/20190813.005155 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 23 Jul 2019 10:00:04 +0000 (19:00 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 5 Aug 2019 01:51:05 +0000 (10:51 +0900)
 - "@SERVICE_NAME@.target" is a typo mistaken for "@SERVICE_NAME@.service".
 - All four sockets are required for auth-fw.service. So, "Requires=OOO.socket" must be in auth-fw.service.
 - "Sockets=" in the auth-fw.service is replaced by "Requires=OOO.socket".

Change-Id: I477d2788012e79240c6252045ad003a0df25ec4c
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
packaging/auth-fw.spec
systemd/CMakeLists.txt
systemd/auth-fw-passwd-check.socket.in
systemd/auth-fw-passwd-policy.socket.in
systemd/auth-fw-passwd-reset.socket.in
systemd/auth-fw-passwd-set.socket.in
systemd/auth-fw.service.in
systemd/auth-fw.target [deleted file]

index 47037f176315655a887f9f3a8bf0fe01e9ef8f86..6e02cf1789e1bad4e572c52d1e46e55db95450d4 100644 (file)
@@ -148,7 +148,6 @@ fi
 %license LICENSE
 %{bin_dir}/%{name}
 %{_libdir}/lib%{name}-commons.so.*
-%{_unitdir}/%{name}.target
 %{_unitdir}/%{name}.service
 %{_unitdir}/multi-user.target.wants/%{name}.service
 %{_unitdir}/%{sock_passwd_check}
index 77beffb14fbea0160c7abc2fc9ea4477f23044b4..2e5a92d441a3624db01dfcab03006eca1d6c6511 100644 (file)
@@ -6,7 +6,6 @@ CONFIGURE_FILE(${SOCK_PASSWD_POLICY}.in ${SOCK_PASSWD_POLICY} @ONLY)
 
 INSTALL(FILES
     ${SERVICE_NAME}.service
-    ${SERVICE_NAME}.target
     ${SOCK_PASSWD_CHECK}
     ${SOCK_PASSWD_SET}
     ${SOCK_PASSWD_RESET}
index a0702fccd2906776831f27460c35a70b9aa5945e..438c09b5686f1d303a690c7cb3862b54751185a9 100644 (file)
@@ -5,12 +5,7 @@ SocketGroup=security_fw
 SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
-
 Service=@SERVICE_NAME@.service
 
-[Unit]
-Wants=@SERVICE_NAME@.target
-Before=@SERVICE_NAME@.target
-
 [Install]
 WantedBy=sockets.target
index aa179ffcf99e34eb663b77b6ae99905aec40e127..e3be43af428197bdf4e506cd93395ae3ff735085 100644 (file)
@@ -5,12 +5,7 @@ SocketGroup=security_fw
 SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
-
 Service=@SERVICE_NAME@.service
 
-[Unit]
-Wants=@SERVICE_NAME@.target
-Before=@SERVICE_NAME@.target
-
 [Install]
 WantedBy=sockets.target
index e486a285232c0cab7426a4dee972ff4643836619..ae6845dac2d1391d812acfdbf02d6883969938dc 100644 (file)
@@ -5,12 +5,7 @@ SocketGroup=security_fw
 SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
-
 Service=@SERVICE_NAME@.service
 
-[Unit]
-Wants=@SERVICE_NAME@.target
-Before=@SERVICE_NAME@.target
-
 [Install]
 WantedBy=sockets.target
index ed28dd109233ccff11f88dda7ca3fd04d59e991e..8dd05fccd8a749229d6a9a6516aeb6a490f1b1da 100644 (file)
@@ -5,12 +5,7 @@ SocketGroup=security_fw
 SocketMode=0777
 SmackLabelIPIn=*
 SmackLabelIPOut=@
-
 Service=@SERVICE_NAME@.service
 
-[Unit]
-Wants=@SERVICE_NAME@.target
-Before=@SERVICE_NAME@.target
-
 [Install]
 WantedBy=sockets.target
index 928c332ae1e34c0bc3bbced62823b745c78d2588..9d6f7477c29e1a3b496d7ba647125f3238496c06 100644 (file)
@@ -1,5 +1,6 @@
 [Unit]
 Description=Start @SERVICE_NAME@ server
+Requires=@SOCK_PASSWD_CHECK@ @SOCK_PASSWD_SET@ @SOCK_PASSWD_RESET@ @SOCK_PASSWD_POLICY@
 
 [Service]
 Type=notify
@@ -7,10 +8,6 @@ ExecStart=@BIN_DIR@/@SERVICE_NAME@
 User=security_fw
 Group=security_fw
 SmackProcessLabel=System
-Sockets=@SOCK_PASSWD_CHECK@
-Sockets=@SOCK_PASSWD_SET@
-Sockets=@SOCK_PASSWD_RESET@
-Sockets=@SOCK_PASSWD_POLICY@
 
 [Install]
 WantedBy=multi-user.target
diff --git a/systemd/auth-fw.target b/systemd/auth-fw.target
deleted file mode 100644 (file)
index 683b5cb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[Unit]
-Description=authentication server sockets