Add security-server.target unit.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Mon, 16 Dec 2013 14:15:24 +0000 (15:15 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:25 +0000 (17:13 +0100)
Service key-storage requires security-server but it should not use
security-server.socket in Requires field because it's part of private
implementation. This commit creates synchronization point
security-server.target that should be used by other services to add
requirement to security-server.

[Issue#]     N/A
[Bug/Cause]  N/A
[Problem]    key-storage is not able to start because new
             security-server does not create security-server.socket.
[Solution]   create synchronization point for key-storage

[Verification] Build, install, reboot device.

Change-Id: Id54e9187edf671eec047787bdeb27a8c2acca29e

15 files changed:
packaging/security-server.spec
systemd/CMakeLists.txt
systemd/security-server-app-permissions.socket
systemd/security-server-app-privilege-by-name.socket
systemd/security-server-cookie-check-tmp.socket
systemd/security-server-cookie-check.socket
systemd/security-server-cookie-get.socket
systemd/security-server-data-share.socket
systemd/security-server-get-gid.socket
systemd/security-server-open-for.socket
systemd/security-server-password-check.socket
systemd/security-server-password-reset.socket
systemd/security-server-password-set.socket
systemd/security-server-privilege-by-pid.socket
systemd/security-server.target [new file with mode: 0644]

index e7a71db..fb01fa1 100644 (file)
@@ -136,6 +136,7 @@ fi
 %{_libdir}/libsecurity-server-commons.so.*
 %attr(-,root,root) /usr/lib/systemd/system/multi-user.target.wants/security-server.service
 %attr(-,root,root) /usr/lib/systemd/system/security-server.service
+%attr(-,root,root) /usr/lib/systemd/system/security-server.target
 %attr(-,root,root) /usr/lib/systemd/system/sockets.target.wants/security-server-data-share.socket
 %attr(-,root,root) /usr/lib/systemd/system/security-server-data-share.socket
 %attr(-,root,root) /usr/lib/systemd/system/sockets.target.wants/security-server-get-gid.socket
index 9503b72..493ffe4 100644 (file)
@@ -1,5 +1,6 @@
 INSTALL(FILES
     ${CMAKE_SOURCE_DIR}/systemd/security-server.service
+    ${CMAKE_SOURCE_DIR}/systemd/security-server.target
     ${CMAKE_SOURCE_DIR}/systemd/security-server-data-share.socket
     ${CMAKE_SOURCE_DIR}/systemd/security-server-get-gid.socket
     ${CMAKE_SOURCE_DIR}/systemd/security-server-privilege-by-pid.socket
index 5faa4ec..814de37 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 1850f2d..b5a032f 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 803609b..ddc7317 100644 (file)
@@ -8,5 +8,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index dda1291..ecd953b 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 754361b..899501e 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 95ac056..4b1f540 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 9a3ce8b..0b06c46 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 9e2c07b..1c41f2d 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 60274be..057746c 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 7e1dc5f..2ce101d 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index 0e97a6f..19e677a 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
index e805c3f..8de4cbb 100644 (file)
@@ -6,5 +6,9 @@ SmackLabelIPOut=@
 
 Service=security-server.service
 
+[Unit]
+Wants=security-server.target
+Before=security-server.target
+
 [Install]
 WantedBy=sockets.target
diff --git a/systemd/security-server.target b/systemd/security-server.target
new file mode 100644 (file)
index 0000000..9885544
--- /dev/null
@@ -0,0 +1,4 @@
+[Unit]
+Description=security-server sockets
+DefaultDependencies=true
+