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)
commit2003744fcf5db01f67d3e3169e2dbb2a94875c61
tree2d98d6615fb01f4bfd43aae666f9069028b461c7
parent1c7ee94810134a4098d8dca1a7934ae9603ff18f
Revert "Do not change ownership of the sockets"

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