From eb2e468e14028935907dbe057edc3826516b3af7 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 23 Nov 2017 16:14:56 +0100 Subject: Add a PAM config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c Signed-off-by: José Bollo --- conf/system/CMakeLists.txt | 4 +++- conf/system/afm-user-session.pamd | 4 ++++ conf/system/afm-user-session@.service | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 conf/system/afm-user-session.pamd diff --git a/conf/system/CMakeLists.txt b/conf/system/CMakeLists.txt index f0e4c6a..d0605eb 100644 --- a/conf/system/CMakeLists.txt +++ b/conf/system/CMakeLists.txt @@ -23,9 +23,11 @@ configure_file(afm-system-daemon.socket.in afm-system-daemon.socket) 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-user-session.pamd DESTINATION ${SYSCONFDIR_PAMD} RENAME afm-user-session) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/afm-system-daemon.service diff --git a/conf/system/afm-user-session.pamd b/conf/system/afm-user-session.pamd new file mode 100644 index 0000000..fb90e14 --- /dev/null +++ b/conf/system/afm-user-session.pamd @@ -0,0 +1,4 @@ +account include common-account +session required pam_loginuid.so +session include common-session + diff --git a/conf/system/afm-user-session@.service b/conf/system/afm-user-session@.service index 53563f5..561128d 100644 --- a/conf/system/afm-user-session@.service +++ b/conf/system/afm-user-session@.service @@ -6,7 +6,7 @@ Before=afm-user-setup@%i.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 -- cgit 1.2.3-korg