%{_libdir}/libdumpsys.so.*
%{_bindir}/dumpsys-service
-%defattr(0655,root,root)
+%defattr(0644,root,root)
%{_unitdir}/basic.target.wants/dumpsys-service.service
%{_unitdir}/dumpsys-service.service
%{_libdir}/tmpfiles.d/dumpsys-run.conf
LINK_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_EXECUTABLE(dumpsys-service ${DUMPSYS_SERVICE})
-TARGET_LINK_LIBRARIES(dumpsys-service PUBLIC ${dumpsys_service_pkgs_LIBRARIES})
+TARGET_LINK_LIBRARIES(dumpsys-service PUBLIC ${dumpsys_service_pkgs_LIBRARIES} -pie)
INSTALL (TARGETS dumpsys-service DESTINATION ${CMAKE_INSTALL_BINDIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
[Service]
Type=simple
User=log
+Group=log
+SmackProcessLabel=System
ExecStart=/usr/bin/dumpsys-service
${CMAKE_SOURCE_DIR}/src/client-api/dumpsys-system.c
${CMAKE_SOURCE_DIR}/src/client-api/dumpsys-user.c)
-TARGET_LINK_LIBRARIES(test-app PUBLIC ${dumpsys-system_pkgs_LIBRARIES})
+TARGET_LINK_LIBRARIES(test-app PUBLIC ${dumpsys-system_pkgs_LIBRARIES} -pie)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR})