aul
appsvc
capi-appfw-app-manager
- cynara-client
- cynara-creds-gdbus
- cynara-session
)
FOREACH(flag ${pkgs_CFLAGS})
%define major 0
%define minor 3
-%define patchlevel 67
+%define patchlevel 68
Name: tel-plugin-dbus_tapi
Version: %{major}.%{minor}.%{patchlevel}
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(tcore)
-BuildRequires: pkgconfig(cynara-client)
-BuildRequires: pkgconfig(cynara-creds-gdbus)
-BuildRequires: pkgconfig(cynara-session)
Requires(post): /sbin/ldconfig
<policy user="root">
<allow own="org.tizen.telephony"/>
<allow send_destination="org.tizen.telephony"/>
- <allow receive_sender="org.tizen.telephony"/>
</policy>
<policy context="default">
- <allow send_destination="org.tizen.telephony"/>
- <allow receive_sender="org.tizen.telephony"/>
+ <allow send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Manager"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.freedesktop.DBus.Properties" send_member="Get" privilege="http://tizen.org/privilege/telephony"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="GetInitStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="GetCount" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="GetInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="GetUsimMetaInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="ReadRecord" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="UpdateRecord" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Phonebook" send_member="DeleteRecord" privilege="http://tizen.org/privilege/telephony.admin"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="ActivateBarring" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="DeactivateBarring" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="ChangeBarringPassword" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="GetBarringStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="RegisterForwarding" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="DeregisterForwarding" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="ActivateForwarding" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="DeactivateForwarding" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="GetForwardingStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="ActivateWaiting" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="DeactivateWaiting" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="GetWaitingStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="SetCLIStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="GetCLIStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Ss" send_member="SendUSSD" privilege="http://tizen.org/privilege/telephony.admin"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.OEM" send_member="SendOemData" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.OEM" send_member="SendOemDataWithResponse" privilege="http://tizen.org/privilege/telephony.admin"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Dial" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Answer" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="End" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="StartContDtmf" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="StopContDtmf" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SendBurstDtmf" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Active" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Hold" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Swap" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Join" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Split" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Transfer" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Deflect" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetPrivacyMode" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetPrivacyMode" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetStatusAll" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundPath" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetSoundVolumeLevel" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundVolumeLevel" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetSoundMuteStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundMuteStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundRecording" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundEqualization" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundNoiseReduction" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetSoundClockStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="SetPreferredVoiceSubscription" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="GetPreferredVoiceSubscription" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="Modify" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Call" send_member="ConfirmModify" privilege="http://tizen.org/privilege/telephony.admin"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="Search" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SearchCancel" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetSelectionMode" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetSelectionMode" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetServiceDomain" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetServiceDomain" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetBand" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetBand" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetMode" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetMode" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetPreferredPlmn" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetPreferredPlmn" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetServingNetwork" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetNgbrCellInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetEmergencyCallbackMode" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetRoamingPreference" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetRoamingPreference" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetDefaultDataSubscription" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetDefaultDataSubscription" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="SetDefaultSubscription" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Network" send_member="GetDefaultSubscription" privilege="http://tizen.org/privilege/telephony"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SendMsg" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="ReadMsg" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SaveMsg" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="DeleteMsg" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetMsgCount" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetSca" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetSca" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetCbConfig" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetCbConfig" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetMemStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetPrefBearer" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetPrefBearer" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetDeliveryReport" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetMsgStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetSmsParams" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="SetSmsParams" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetSmsParamCnt" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.sms" send_member="GetSmsReadyStatus" privilege="http://tizen.org/privilege/telephony"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="GetMainMenuInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="SendUiDisplayStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="SendUserConfirm" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="SelectMenu" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="DownloadEvent" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.SAT" send_member="SendAppExecResult" privilege="http://tizen.org/privilege/telephony.admin"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="SetPower" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="SetFlightMode" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="GetFlightMode" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="GetVersion" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="GetSerialNumber" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="GetIMEI" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="SetDunPinCtrl" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Modem" send_member="GetDeviceInfo" privilege="http://tizen.org/privilege/telephony"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetInitStatus" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetCardType" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetIMSI" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetECC" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetICCID" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetLanguage" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="SetLanguage" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetCallForwarding" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="SetCallForwarding" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetMessageWaiting" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="SetMessageWaiting" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetMailbox" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="SetMailbox" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetCPHSInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetServiceTable" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetMSISDN" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetOplmnwact" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetSpn" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetCphsNetName" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetGID" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="Authentication" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="VerifySec" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="VerifyPUK" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="ChangePIN" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="DisableFacility" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="EnableFacility" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetFacility" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetLockInfo" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="TransferAPDU" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetATR" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetFields" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="SetPowerstate" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetImpi" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetImpu" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetDomain" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetPcscf" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetAppList" privilege="http://tizen.org/privilege/telephony"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sim" send_member="GetIsimServiceTable" privilege="http://tizen.org/privilege/telephony"/>
+
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="Connect" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="Disconnect" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="GetStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="GetATR" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="TransferAPDU" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="SetProtocol" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="SetPower" privilege="http://tizen.org/privilege/telephony.admin"/>
+ <check send_destination="org.tizen.telephony" send_interface="org.tizen.telephony.Sap" send_member="GetCardReaderStatus" privilege="http://tizen.org/privilege/telephony.admin"/>
</policy>
</busconfig>
-
{
struct treq_call_dial req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
memset(&req, 0x0, sizeof(req));
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
-
req.type = call_type;
req.ecc = call_ecc;
{
struct treq_call_answer req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
req.type = answer_type;
{
struct treq_call_end req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
req.type = end_type;
{
struct treq_call_start_cont_dtmf req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(req));
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
dbg("[%s] Stop DTMF", GET_CP_NAME(invocation));
{
struct treq_call_send_burst_dtmf req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(req));
{
struct treq_call_active req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_hold req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_swap req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_join req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_split req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_transfer req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
{
struct treq_call_deflect req = {0};
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
if (call_number)
g_strlcpy(req.number, call_number, MAX_CALL_DIAL_NUM_LEN);
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, call, invocation,
{
struct treq_call_set_voice_privacy_mode req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.privacy_mode = privacy_mode;
TcorePlugin *plugin = 0;
CoreObject *call_co = NULL;
CallObject *call_obj = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
gchar call_number[MAX_CALL_NUMBER_LEN];
gint call_type;
gboolean call_direction;
gboolean call_multiparty_state;
gboolean is_volte_call;
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
-
plugin = tcore_server_find_plugin(ctx->server, GET_CP_NAME(invocation));
call_co = tcore_plugin_ref_core_object(plugin, CORE_OBJECT_TYPE_CALL);
call_obj = tcore_call_object_find_by_handle(call_co, call_handle);
GVariant *gv = NULL;
GVariantBuilder b;
- cynara *p_cynara = ctx->p_cynara;
gint call_id;
gint handle;
int len, i;
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
-
plugin = tcore_server_find_plugin(ctx->server, GET_CP_NAME(invocation));
call_co = tcore_plugin_ref_core_object(plugin, CORE_OBJECT_TYPE_CALL);
{
struct treq_call_set_sound_path req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.path = sound_path;
req.extra_volume_on = extra_volume_on;
struct treq_call_get_sound_volume_level req;
struct custom_data *ctx = user_data;
TReturn ret;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
req.device = sound_device;
req.sound = sound_type;
{
struct treq_call_set_sound_volume_level req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.device = sound_device;
req.sound = sound_type;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, call, invocation,
{
struct treq_call_set_sound_mute_status req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.path = path;
req.status = status;
{
struct custom_data *ctx = user_data;
struct treq_call_set_sound_recording req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.state = (gboolean)recording_state;
{
struct custom_data *ctx = user_data;
struct treq_call_set_sound_equalization req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.mode = eq_mode;
req.direction = (enum telephony_call_sound_direction)eq_direction;
{
struct custom_data *ctx = user_data;
struct treq_call_set_sound_noise_reduction req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.status = (gboolean)nr_state;
{
struct custom_data *ctx = user_data;
struct treq_call_set_sound_clock_status req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.status = clock_status;
{
struct custom_data *ctx = user_data;
struct treq_call_set_preferred_voice_subscription req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "w"))
- return TRUE;
req.preferred_subs = preferred_subscription;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, call, invocation,
{
struct custom_data *ctx = user_data;
struct treq_call_modify req = {0};
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
req.call_type = call_type;
{
struct custom_data *ctx = user_data;
struct treq_call_confirm_modify req = {0};
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_CALL, "x"))
- return TRUE;
req.handle = call_handle;
req.confirm_type = confirm_type;
#include <libxml/parser.h>
#include <libxml/tree.h>
-#include <cynara-creds-gdbus.h>
-#include <cynara-session.h>
-
#include "generated-code.h"
#include "dtapi_common.h"
-#define PERM_WRITE "w"
-#define PERM_EXECUTE "x"
-#define TELEPHONY_PRIVILEGE "http://tizen.org/privilege/telephony"
-#define TELEPHONY_ADMIN_PRIVILEGE "http://tizen.org/privilege/telephony.admin"
-
static void _free_hook(UserRequest *ur)
{
struct dbus_request_info *user_info;
return ur;
}
-gboolean check_access_control(cynara *p_cynara, GDBusMethodInvocation *invoc, const char *label, const char *perm)
-{
- GDBusConnection *conn;
- const char *sender_unique_name;
- pid_t pid;
- int ret;
- int result = FALSE;
- /* For cynara */
- gchar *client_smack = NULL;
- char *client_session = NULL;
- gchar *uid_string = NULL;
- const char *privilege = NULL;
-
- if (!p_cynara) {
- warn("access control denied (fail to get cynara handle)");
- goto OUT;
- }
-
- conn = g_dbus_method_invocation_get_connection(invoc);
- if (!conn) {
- warn("access control denied (no connection info)");
- goto OUT;
- }
-
- sender_unique_name = g_dbus_method_invocation_get_sender(invoc);
-
- /* Get PID */
- ret = cynara_creds_gdbus_get_pid(conn, sender_unique_name, &pid);
- if (ret != CYNARA_API_SUCCESS) {
- warn("access control denied (fail to get pid). ret = %d", ret);
- goto OUT;
- }
-
- /* Get UID */
- ret = cynara_creds_gdbus_get_user(conn, sender_unique_name, USER_METHOD_DEFAULT, &uid_string);
- if (ret != CYNARA_API_SUCCESS) {
- warn("access control denied (fail to get uid for cynara). ret = %d", ret);
- goto OUT;
- }
-
- /* Get Smack label */
- ret = cynara_creds_gdbus_get_client(conn, sender_unique_name, CLIENT_METHOD_DEFAULT, &client_smack);
- if (ret != CYNARA_API_SUCCESS) {
- warn("access control denied (fail to get smack for cynara). ret = %d", ret);
- goto OUT;
- }
-
- dbg("sender: %s pid = %u uid = %s smack = %s", sender_unique_name, pid, uid_string, client_smack);
-
- client_session = cynara_session_from_pid(pid);
- if (!client_session) {
- warn("access control denied (fail to get cynara client session)");
- goto OUT;
- }
-
- if (g_strrstr(perm, PERM_WRITE) == NULL && g_strrstr(perm, PERM_EXECUTE) == NULL)
- privilege = TELEPHONY_PRIVILEGE;
- else
- privilege = TELEPHONY_ADMIN_PRIVILEGE;
-
- ret = cynara_check(p_cynara, client_smack, client_session, uid_string, privilege);
- if (ret != CYNARA_API_ACCESS_ALLOWED)
- warn("pid(%u) access (%s - %s) denied(%d)", pid, label, perm, ret);
- else
- result = TRUE;
-OUT:
- if (result == FALSE) {
- g_dbus_method_invocation_return_error(invoc,
- G_DBUS_ERROR,
- G_DBUS_ERROR_ACCESS_DENIED,
- "No access rights");
- }
- free(client_session);
- g_free(client_smack);
- g_free(uid_string);
-
- return result;
-}
-
enum dbus_tapi_sim_slot_id get_sim_slot_id_by_cp_name(const char *cp_name)
{
if (g_str_has_suffix(cp_name , "0"))
#include <glib.h>
#include <gio/gio.h>
-#include <cynara-client.h>
-
#include "type/sim.h"
#include "generated-code.h"
gboolean name_acquired;
guint owner_id;
-
- cynara *p_cynara;
};
struct dbus_request_info {
char *dbus_plugin_get_cp_name_by_object_path(const char *object_path);
UserRequest *dbus_plugin_macro_user_request_new(struct custom_data *ctx, void *object, GDBusMethodInvocation *invocation);
-gboolean check_access_control (cynara *p_cynara, GDBusMethodInvocation *invoc, const char *label, const char *perm);
gboolean dbus_plugin_util_load_xml(char *docname, char *groupname, void **i_doc, void **i_root_node);
void dbus_plugin_util_unload_xml(void **i_doc, void **i_root_node);
Communicator *comm;
struct custom_data *data;
guint id;
- cynara *p_cynara = NULL;
dbg("Enter");
- /* Initialize cynara handle */
- if (CYNARA_API_SUCCESS == cynara_initialize(&p_cynara, NULL)) {
- dbg("cynara handle is successfully initialized.");
- } else {
- err("Failed to initialize cynara handle.");
- return FALSE;
- }
-
data = calloc(1, sizeof(struct custom_data));
- if (!data) {
- cynara_finish(p_cynara);
+ if (!data)
return FALSE;
- }
- data->p_cynara = p_cynara;
data->plugin = p;
comm = tcore_communicator_new(p, "dbus", &dbus_ops);
}
g_slist_free(data->cached_data);
- if (data->p_cynara) {
- cynara_finish(data->p_cynara);
- data->p_cynara = NULL;
- }
-
free(data);
tcore_server_remove_communicator(s, comm);
{
struct custom_data *ctx = user_data;
enum tcore_request_command command;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "x"))
- return TRUE;
switch (mode) {
case MODEM_STATE_ONLINE:
{
struct treq_modem_set_flightmode req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "w"))
- return TRUE;
req.enable = enable;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, modem, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, modem, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, modem, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, modem, invocation,
{
struct treq_modem_set_dun_pin_control req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "x"))
- return TRUE;
req.signal = signal;
req.status = status;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, modem, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "x"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "x"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
{
struct treq_network_set_plmn_selection_mode req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_network_set_plmn_selection_mode));
{
struct treq_network_set_service_domain req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.domain = domain;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
{
struct treq_network_set_band req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.mode = mode;
req.band = band;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
{
struct treq_network_set_mode req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.mode = mode;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
{
struct treq_network_set_preferred_plmn req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.operation = mode;
req.ef_index = ef_index;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
{
struct treq_network_set_emergency_callback_mode req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.mode = mode;
{
struct treq_network_set_roaming_preference req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "w"))
- return TRUE;
req.roam_pref = roam_pref;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_NETWORK, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, network, invocation,
gint result = 1;
guchar *decoded_data = NULL;
gsize length;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_MODEM, "w"))
- return TRUE;
ur = MAKE_UR(ctx, oem, invocation);
gboolean pb_status = FALSE;
struct tel_phonebook_support_list *list = NULL;
CoreObject *co_pb = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "r"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
struct treq_phonebook_get_count req;
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "r"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
struct treq_phonebook_get_info req;
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "r"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
struct custom_data *ctx = user_data;
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "r"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
struct treq_phonebook_read_record req;
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "r"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
int temp_len = 0;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "x"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
struct treq_phonebook_delete_record req;
CoreObject *co_pb = NULL;
gboolean pb_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_PHONEBOOK, "x"))
- return TRUE;
DBUS_PBM_GET_CO_PBM(invocation, co_pb, ctx->server);
pb_status = tcore_phonebook_get_status(co_pb);
{
struct custom_data *ctx = user_data;
struct treq_sap_req_connect req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_sap_req_connect));
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "x"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sap, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sap, invocation,
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sap, invocation,
GVariant *inner_gv = NULL;
guchar rt_i;
int i = 0;
- cynara *p_cynara = ctx->p_cynara;
dbg("Func Entrance");
- if (!check_access_control(p_cynara, invocation, AC_SAP, "x"))
- return TRUE;
-
memset(&req, 0x0, sizeof(struct treq_sap_transfer_apdu));
inner_gv = g_variant_get_variant(req_apdu);
{
struct custom_data *ctx = user_data;
struct treq_sap_set_protocol req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_sap_set_protocol));
{
struct custom_data *ctx = user_data;
struct treq_sap_set_power req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_sap_set_power));
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAP, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sap, invocation,
GVariant *icon_id = NULL;
GVariant *icon_list = NULL;
#endif
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAT, "r"))
- return TRUE;
main_menu = __sat_get_main_menu(ctx, GET_CP_NAME(invocation));
if (!main_menu) {
struct custom_data *ctx = user_data;
gboolean result = FALSE;
gint out_param = 0;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAT, "x"))
- return TRUE;
cp_name = GET_CP_NAME(invocation);
plg = tcore_server_find_plugin(ctx->server, cp_name);
TcorePlugin *plg = NULL;
char *cp_name;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
gboolean result = FALSE;
gint out_param = 0;
GVariant *confirm_data = NULL;
- if (!check_access_control(p_cynara, invocation, AC_SAT, "x"))
- return TRUE;
-
cp_name = GET_CP_NAME(invocation);
plg = tcore_server_find_plugin(ctx->server, cp_name);
if (!plg) {
TcorePlugin *plg = NULL;
char *cp_name;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
gboolean result = FALSE;
gint out_param = 0;
- if (!check_access_control(p_cynara, invocation, AC_SAT, "x"))
- return TRUE;
-
cp_name = GET_CP_NAME(invocation);
plg = tcore_server_find_plugin(ctx->server, cp_name);
if (!plg) {
{
struct custom_data *ctx = user_data;
struct treq_sat_envelop_cmd_data req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAT, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_sat_envelop_cmd_data));
{
gboolean b_event = FALSE;
struct custom_data *ctx = user_data;
-
struct treq_sat_envelop_cmd_data req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SAT, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_sat_envelop_cmd_data));
enum tel_sim_status sim_status = SIM_STATUS_UNKNOWN;
gboolean sim_changed = FALSE;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
struct custom_data *ctx = user_data;
enum tel_sim_type sim_type = SIM_TYPE_UNKNOWN;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_CARD_TYPE, co_sim);
struct custom_data *ctx = user_data;
struct tel_sim_imsi *imsi;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_IMSI, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct tel_sim_ecc_list *ecc_list = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_ECC, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct tel_sim_iccid* iccid = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_ICCID, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_LANGUAGE, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_set_language req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "w"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, SET_LANGUAGE, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
TReturn ret;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_CALL_FORWARDING, co_sim);
CoreObject *co_sim = NULL;
struct treq_sim_set_callforwarding req;
TReturn ret;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "w"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, SET_CALL_FORWARDING, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
TReturn ret;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_MESSAGE_WAITING, co_sim);
TReturn ret;
CoreObject *co_sim = NULL;
struct treq_sim_set_messagewaiting req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "w"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, SET_MESSAGE_WAITING, co_sim);
struct custom_data *ctx = user_data;
TReturn ret;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_MAILBOX, co_sim);
TReturn ret;
CoreObject *co_sim = NULL;
struct treq_sim_set_mailbox req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "w"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, SET_MAILBOX, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_CPHS_INFO, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct tel_sim_service_table *svct = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_SVCT, co_sim);
CoreObject *co_sim = NULL;
struct tel_sim_msisdn_list *msisdn_list = NULL;
gboolean read_from_modem = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_MSISDN, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_OPLMWACT, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct tel_sim_spn* spn = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_SPN, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct tel_sim_cphs_netname *cphs_netname = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_CPHS_NET_NAME, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_GID, co_sim);
TReturn ret;
CoreObject *co_sim = NULL;
struct treq_sim_req_authentication req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, AUTHENTICATION, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_verify_pins req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, VERIFY_SEC, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_verify_puks req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, VERIFY_PUK, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_change_pins req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, CHANGE_PIN, co_sim);
struct custom_data *ctx = user_data;
struct treq_sim_disable_facility req;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, DISABLE_FACILITY, co_sim);
struct custom_data *ctx = user_data;
struct treq_sim_enable_facility req;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, ENABLE_FACILITY, co_sim);
struct custom_data *ctx = user_data;
struct treq_sim_get_facility_status req;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_FACILITY, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_get_lock_info req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_LOCK_INFO, co_sim);
guchar rt_i;
CoreObject *co_sim = NULL;
int i = 0;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "x"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, TRANSFER_APDU, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_ATR, co_sim);
CoreObject *co_sim = NULL;
GVariantBuilder b;
GVariant *gv_fields = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
struct treq_sim_set_powerstate req;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "w"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, SET_POWERSTATE, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_IMPI, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_IMPU, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_DOMAIN, co_sim);
{
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_PCSCF, co_sim);
struct custom_data *ctx = user_data;
CoreObject *co_sim = NULL;
unsigned char app_list = 0;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_APP_LIST, co_sim);
struct custom_data *ctx = user_data;
struct tel_sim_ist *ist = NULL;
CoreObject *co_sim = NULL;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SIM, "r"))
- return TRUE;
DBUS_SIM_GET_COSIM(invocation, co_sim, ctx->server);
DBUS_SIM_CHECK_SIM_STATUS(invocation, GET_ISIM_SERVICE_TABLE, co_sim);
struct treq_sms_send_msg req;
struct custom_data *ctx = user_data;
enum tcore_request_command command;
- cynara *p_cynara = ctx->p_cynara;
int i = 0;
GVariantIter *iter = NULL;
GVariant *inner_gv = NULL;
- if (!check_access_control(p_cynara, invocation, AC_SMS, "x"))
- return TRUE;
-
memset(&req, 0x0, sizeof(struct treq_sms_send_msg));
if (SMS_NETTYPE_3GPP == format) {
{
struct treq_sms_read_msg req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
req.index = msg_index;
{
struct treq_sms_save_msg req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
int i = 0;
GVariantIter *iter = NULL;
GVariant *inner_gv = NULL;
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
-
if (SMS_NETTYPE_3GPP == format) {
req.msgDataPackage.format = SMS_NETTYPE_3GPP;
} else if (SMS_NETTYPE_3GPP2 == format) {
{
struct treq_sms_delete_msg req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "x"))
- return TRUE;
req.index = msg_index;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sms, invocation,
{
struct treq_sms_get_sca req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
req.index = msg_index;
gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
if ((sca_length <= 0)
|| (sca_length > (SMS_MAX_SMS_SERVICE_CENTER_ADDR + 1))) {
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sms, invocation,
{
struct treq_sms_set_cb_config req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
GVariant *value = NULL;
GVariant *inner_gv = NULL;
const gchar *key = NULL;
int i = 0;
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
-
req.net3gppType = network_type;
req.cbEnabled = enable_cb;
req.msgIdMaxCount = msg_id_max_cnt;
{
struct treq_sms_set_mem_status req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
req.memory_status = memory_status;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sms, invocation,
{
struct treq_sms_set_pref_bearer req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
req.svc = bearer_type;
{
struct treq_sms_set_delivery_report req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
guchar *decoded_sca = NULL;
guchar *decoded_tpdu = NULL;
gsize decoded_sca_len = 0;
gsize decoded_tpdu_len = 0;
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
-
memset(&req, 0, sizeof(struct treq_sms_set_delivery_report));
if (SMS_NETTYPE_3GPP == format) {
{
struct treq_sms_set_msg_status req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
req.index = msg_index;
req.msgStatus = msg_status;
{
struct treq_sms_get_params req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
req.index = msg_index;
{
struct treq_sms_set_params req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
int i = 0;
GVariantIter *iter = NULL;
GVariant *inner_gv = NULL;
- if (!check_access_control(p_cynara, invocation, AC_SMS, "w"))
- return TRUE;
-
memset(&req, 0x0, sizeof(struct treq_sms_set_params));
req.params.recordIndex = record_index;
GDBusMethodInvocation *invocation, gpointer user_data)
{
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
/* Dispatch request */
dtapi_dispatch_request(ctx, sms, invocation,
CoreObject *co_sms = NULL;
TcorePlugin *plugin = NULL;
gboolean ready_status = FALSE;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SMS, "r"))
- return TRUE;
plugin = tcore_server_find_plugin(ctx->server, GET_CP_NAME(invocation));
co_sms = tcore_plugin_ref_core_object(plugin, CORE_OBJECT_TYPE_SMS);
struct treq_ss_barring req;
struct custom_data *ctx = user_data;
char buf[MAX_SS_BARRING_PASSWORD_LEN + 1];
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_barring));
struct treq_ss_barring req;
struct custom_data *ctx = user_data;
char buf[MAX_SS_BARRING_PASSWORD_LEN + 1];
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_barring));
{
struct treq_ss_barring_change_password req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_barring_change_password));
{
struct treq_ss_barring req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "r"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_barring));
{
struct treq_ss_forwarding req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_forwarding));
{
struct treq_ss_forwarding req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_forwarding));
{
struct treq_ss_forwarding req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_forwarding));
{
struct treq_ss_forwarding req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_forwarding));
{
struct treq_ss_forwarding req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "r"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_forwarding));
{
struct treq_ss_waiting req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_waiting));
{
struct treq_ss_waiting req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_waiting));
{
struct treq_ss_waiting req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "r"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_waiting));
{
struct treq_ss_set_cli req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "w"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_set_cli));
{
struct treq_ss_cli req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "r"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_cli));
{
struct treq_ss_ussd req;
struct custom_data *ctx = user_data;
- cynara *p_cynara = ctx->p_cynara;
-
- if (!check_access_control(p_cynara, invocation, AC_SS, "x"))
- return TRUE;
memset(&req, 0x0, sizeof(struct treq_ss_ussd));