<manifest>
- <define>
- <domain name="libaccounts-svc"/>
- <provide>
- <label name="libaccounts-svc::db"/>
- <label name="libaccounts-svc::check_read"/>
- </provide>
- <request>
- <smack request="libaccounts-svc::db" type="rw" />
- <smack request="pkgmgr-server" type="rx" />
- <smack request="pkgmgr::db" type="rl" />
- <smack request="system::vconf" type="x" />
- <smack request="system::vconf_inhouse" type="rl" />
- <smack request="device::app_logging" type="w" />
- <smack request="device::sys_logging" type="w" />
- <smack request="security-server::api-cookie-check" type="w" />
- <smack request="dbus" type="rwx"/>
- </request>
- </define>
<request>
- <domain name="libaccounts-svc"/>
+ <domain name="_"/>
</request>
- <assign>
- <filesystem path="/usr/lib/libaccounts-svc.so.0" label="_" />
- <filesystem path="/usr/lib/libaccounts-svc.so.0.3.0" label="_" />
- <filesystem path="/opt/usr/dbspace/.account.db" label="libaccounts-svc::db"/>
- <filesystem path="/opt/usr/dbspace/.account.db-journal" label="libaccounts-svc::db"/>
- </assign>
</manifest>
'
fi
-mkdir -p /opt/usr/share/account
-chown root:root %{TZ_SYS_DB}/.account.db
-chown root:root %{TZ_SYS_DB}/.account.db-journal
+chown system:system %{TZ_SYS_DB}/.account.db
+chown system:system %{TZ_SYS_DB}/.account.db-journal
-chmod 600 /opt/usr/dbspace/.account.db
-chmod 600 /opt/usr/dbspace/.account.db-journal
+chmod 600 %{TZ_SYS_DB}/.account.db
+chmod 600 %{TZ_SYS_DB}/.account.db-journal
#set message key value to NULL
#vconftool set -t string db/account/msg '' -g 6514
vconftool set -tf string db/account/msg '' -s libaccounts-svc -u 200 -g 5000
#smack labeling
-if [ -f /usr/lib/rpm-plugins/msm.so ]
-then
- chsmack -a 'libaccounts-svc::db' /opt/usr/dbspace/.account.db-journal
- chsmack -a 'libaccounts-svc::db' /opt/usr/dbspace/.account.db
-fi
+chsmack -a 'System' %{TZ_SYS_DB}/.account.db-journal
+chsmack -a 'System' %{TZ_SYS_DB}/.account.db
%postun -p /sbin/ldconfig
%manifest libaccounts-svc.manifest
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/account-svcd
-%attr(-,root,root) %{_libdir}/systemd/system/accounts-service.service
-%attr(-,root,root) %{_libdir}/systemd/system/multi-user.target.wants/accounts-service.service
+%attr(-,root,root) %{_unitdir}/accounts-service.service
+%attr(-,root,root) %{_unitdir}/multi-user.target.wants/accounts-service.service
%files devel
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/account-svcd
-%attr(-,root,root) %{_libdir}/systemd/system/accounts-service.service
-%attr(-,root,root) %{_libdir}/systemd/system/multi-user.target.wants/accounts-service.service
+%attr(-,root,root) %{_unitdir}/accounts-service.service
+%attr(-,root,root) %{_unitdir}/multi-user.target.wants/accounts-service.service
return -1;
}
- ret = cynara_creds_gdbus_get_user(gdbus_conn, sender, CLIENT_METHOD_SMACK, user);
+ ret = cynara_creds_gdbus_get_user(gdbus_conn, sender, USER_METHOD_DEFAULT, user);
if (ret != CYNARA_API_SUCCESS)
{
_ERR("cynara_creds_gdbus_get_user failed, ret = %d", ret);
return -1;
}
- ret = cynara_creds_gdbus_get_client(gdbus_conn, sender, CLIENT_METHOD_SMACK, client);
+ ret = cynara_creds_gdbus_get_client(gdbus_conn, sender, CLIENT_METHOD_DEFAULT, client);
if (ret != CYNARA_API_SUCCESS)
{
_ERR("cynara_creds_gdbus_get_client failed, ret = %d", ret);