Add gumd hook script to add/remove manifests of new user 54/77254/1 accepted/tizen/common/20160629.223402 accepted/tizen/ivi/20160630.003940 accepted/tizen/mobile/20160630.003955 accepted/tizen/tv/20160630.003928 accepted/tizen/wearable/20160630.003958 submit/tizen/20160629.102546
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 29 Jun 2016 07:41:57 +0000 (16:41 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 29 Jun 2016 07:51:02 +0000 (16:51 +0900)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: If7a642bb25010d794e1a74003ed3259da5a995ef

packaging/device-policy-manager.spec
zone/CMakeLists.txt
zone/gumd-scripts/20_pam-zone-add.post [new file with mode: 0644]
zone/gumd-scripts/20_pam-zone-remove.post [new file with mode: 0644]

index 83ed454..c786c21 100755 (executable)
@@ -341,6 +341,8 @@ mv /etc/pam.d/systemd-user.keep /etc/pam.d/systemd-user
 %attr(700,root,root) %{_sbindir}/zone-admin-cli
 %attr(700,root,root) %{_sbindir}/zone-volume-manager
 %attr(700,root,root) %dir %{TZ_SYS_ETC}/dpm/zone
+%attr(700,root,root) /etc/gumd/useradd.d/20_pam-zone-add.post
+%attr(700,root,root) /etc/gumd/userdel.d/20_pam-zone-remove.post
 %attr(600,root,root) %config %{TZ_SYS_ETC}/dpm/zone/owner.xml
 %attr(644,root,root) %{TZ_SYS_DATA}/dpm/zone_indicator_icon.png
 %attr(644,root,root) %{TZ_SYS_DATA}/dpm/zone_noti_list_sub_icon.png
index 32c7a8c..03de88c 100755 (executable)
@@ -25,3 +25,6 @@ ADD_SUBDIRECTORY(${ZONE_LIBS})
 ADD_SUBDIRECTORY(${ZONE_CLI})
 ADD_SUBDIRECTORY(${ZONE_APPS})
 ADD_SUBDIRECTORY(${ZONE_VOLUME})
+
+INSTALL(FILES gumd-scripts/20_pam-zone-add.post DESTINATION /etc/gumd/useradd.d)
+INSTALL(FILES gumd-scripts/20_pam-zone-remove.post DESTINATION /etc/gumd/userdel.d)
diff --git a/zone/gumd-scripts/20_pam-zone-add.post b/zone/gumd-scripts/20_pam-zone-add.post
new file mode 100644 (file)
index 0000000..3b408f7
--- /dev/null
@@ -0,0 +1,2 @@
+export `tzplatform-get TZ_SYS_ETC`
+cp ${TZ_SYS_ETC}/dpm/zone/owner.xml ${TZ_SYS_ETC}/dpm/zone/${1}.xml
diff --git a/zone/gumd-scripts/20_pam-zone-remove.post b/zone/gumd-scripts/20_pam-zone-remove.post
new file mode 100644 (file)
index 0000000..47f3bda
--- /dev/null
@@ -0,0 +1,2 @@
+export `tzplatform-get TZ_SYS_ETC`
+rm ${TZ_SYS_ETC}/dpm/zone/${1}.xml