diff options
author | jooseong lee <jooseong.lee@samsung.com> | 2016-05-20 15:59:11 +0900 |
---|---|---|
committer | jooseong lee <jooseong.lee@samsung.com> | 2016-05-20 16:03:56 +0900 |
commit | 282a7b00f385840fd00d98e9e94cd77a9707d657 (patch) | |
tree | aa07b6f966c6e12dc92878da96258f54555e830f | |
parent | 5a4673696afb10aef72a3f974fb47fd5f5be500e (diff) | |
download | auth-fw-282a7b00f385840fd00d98e9e94cd77a9707d657.tar.gz auth-fw-282a7b00f385840fd00d98e9e94cd77a9707d657.tar.bz2 auth-fw-282a7b00f385840fd00d98e9e94cd77a9707d657.zip |
Make a data directory for password in the %install sessionsubmit/tizen/20160520.070840accepted/tizen/wearable/20160520.141120accepted/tizen/tv/20160520.141024accepted/tizen/mobile/20160520.140710accepted/tizen/ivi/20160520.141232accepted/tizen/common/20160520.171500
Because of root minimization, auth-fw daemon can't make a data directory.
Change-Id: I86ab221006b20a264c8bd317d001f9474dd71431
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
-rw-r--r-- | packaging/auth-fw.spec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/auth-fw.spec b/packaging/auth-fw.spec index 7e3857f..7317ad4 100644 --- a/packaging/auth-fw.spec +++ b/packaging/auth-fw.spec @@ -19,6 +19,8 @@ BuildRequires: pkgconfig(libtzplatform-config) %description Authentication framework which is consist of client library and server daemon +%global user_name security_fw +%global group_name security_fw %global run_dir %{?TZ_SYS_RUN:%TZ_SYS_RUN}%{!?TZ_SYS_RUN:/var/run} %global bin_dir %{?TZ_SYS_BIN:%TZ_SYS_BIN}%{!?TZ_SYS_BIN:%_bindir} # image creation error occured if /usr/sbin used for ldconfig @@ -93,6 +95,8 @@ make %{?jobs:-j%jobs} %install_service sockets.target.wants %{sock_passwd_reset} %install_service sockets.target.wants %{sock_passwd_policy} +mkdir -p %{buildroot}/%{rw_data_dir} + %post %{sbin_dir}/ldconfig systemctl daemon-reload @@ -105,6 +109,7 @@ if [ $1 = 2 ]; then # update systemctl restart %{name}.service fi +chsmack -a System %{rw_data_dir} %preun if [ $1 = 0 ]; then @@ -143,6 +148,7 @@ fi %{_unitdir}/sockets.target.wants/%{sock_passwd_set} %{_unitdir}/sockets.target.wants/%{sock_passwd_reset} %{_unitdir}/sockets.target.wants/%{sock_passwd_policy} +%dir %attr(770, %{user_name}, %{group_name}) %{rw_data_dir} %files -n lib%{name}-client %manifest lib%{name}-client.manifest |