Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
if(NOT USE_SDK)
set(SYSCONFDIR_DBUS_SYSTEM ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d CACHE STRING "Path to dbus system configuration files")
if(NOT USE_SDK)
set(SYSCONFDIR_DBUS_SYSTEM ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d CACHE STRING "Path to dbus system configuration files")
- set(UNITDIR_SYSTEM ${CMAKE_INSTALL_LIBDIR}/systemd/system CACHE STRING "Path to systemd system unit files")
+ set(SYSCONFDIR_PAMD ${CMAKE_INSTALL_SYSCONFDIR}/pam.d CACHE STRING "Path to pam configuration files")
+ set(UNITDIR_SYSTEM ${CMAKE_INSTALL_LIBDIR}/systemd/system CACHE STRING "Path to systemd system unit files")
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-system-daemon.conf DESTINATION ${SYSCONFDIR_DBUS_SYSTEM})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-system-daemon.conf DESTINATION ${SYSCONFDIR_DBUS_SYSTEM})
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/afm-user-session.pamd DESTINATION ${SYSCONFDIR_PAMD} RENAME afm-user-session)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/afm-system-daemon.service
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/afm-system-daemon.service
--- /dev/null
+account include common-account
+session required pam_loginuid.so
+session include common-session
+
Wants=afm-user-session@%i.target
Before=afm-user-session@%i.target
[Service]
Wants=afm-user-session@%i.target
Before=afm-user-session@%i.target
[Service]
-PAMName=agl-user-session
+PAMName=afm-user-session
User=%i
Type=simple
ExecStartPre=/bin/echo START afm-user-session@%i
User=%i
Type=simple
ExecStartPre=/bin/echo START afm-user-session@%i