Revert "Do not change ownership of the sockets" 91/318791/1
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:04:35 +0000 (15:04 +0900)
commitf75f17291ea3b29758ce4d4600db7392d6d823af
tree2d98d6615fb01f4bfd43aae666f9069028b461c7
parent5bbceae3eaa7178b66c2f4f33ae385ab790989a8
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