Revert "Do not change ownership of the sockets" 90/318790/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250203.162334 accepted/tizen/unified/20250204.155501 accepted/tizen/unified/x/20250212.043728 accepted/tizen/unified/x/asan/20250211.003219
authorSangYoun Kwak <sy.kwak@samsung.com>
Fri, 24 Jan 2025 05:57:32 +0000 (14:57 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Fri, 24 Jan 2025 06:03:34 +0000 (15:03 +0900)
Since the security-config script limits installation of services and
sockets which are not permitted in the systemd_socket.csv.
In the systemd_socket.csv, sensord.socket is defined as below:
 * sensord.socket,sensor,input,0777,*,@,1,1,1,1,0,1,1,1,1,0
It means that sensord.socket should have socket user as "sensor" and
socket group as "input". If this condition is not met, then the
security-config script removes sensord.socket from the created image
before image is successfully created.
Due to this limitation, removing items "SocketUser" and "SocketGroup"
will make the final image omits sensor.socket.
To resolve this issue, removed items "SocketUser" and "SocketGroup" are
restored.

This reverts commit c723b7a2a6ccdf1b9dac7f6ed75f1074f99ad7ee.

Change-Id: I930492377feb16874428184926559b50e08cc4d1
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/sensord.socket

index ce2f0ce47fa411dce43b1f0b588d3924ac1fdf45..a64cd4b079e83bc91755384c68cdb744de35299e 100644 (file)
@@ -2,6 +2,8 @@
 Description=Sensor socket
 
 [Socket]
+SocketUser=sensor
+SocketGroup=input
 ListenStream=/run/.sensord.socket
 SocketMode=0777
 PassCredentials=yes