summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-08-31Remove the getter, remove the pyramidsandbox/mbloch/cheopsMichal Bloch1-27/+25
Change-Id: I72833cb5f0b91d918e8f77f0de49935f1b5ec537 Signed-off-by: Michal Bloch <m.bloch@samsung.com>
2022-08-31[fix] sessiond: Correct handling of the TRANSMUTE attributeAdam Michalski1-0/+16
Due to its different nature (being inheritable) it wasn't handled properly in some cases (e.g., for subdirectories that had it set to false whose parent was set to true). Change-Id: I3ee146056682e2380932fdd9052efe25e5d7f735
2022-08-22Change subsession API argument name (from cb_data to user_data)submit/tizen/20220822.111221accepted/tizen/unified/20220824.135645Hyotaek Shim4-91/+91
Change-Id: I58969118f4a0412ef781d1c277ca222e70b02723 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2022-08-19Merge "library: Simplify subsession_event_wait_done() error path" into tizenKarol Lewandowski1-7/+5
2022-08-18[fix] sessiond: do not follow symlinks while setting SMACK attributessubmit/tizen/20220818.125806accepted/tizen/unified/20220821.211106Adam Michalski2-4/+4
of the copied files Change-Id: Ia775dc9af277a333dbd5e75ee8e4ba2eebe88098
2022-08-17Release 0.7.0submit/tizen/20220817.154056Karol Lewandowski1-1/+1
Change-Id: Ie35da62d64e3f985060fa0a03641864dd942417c
2022-08-17Merge "Log using DLog and not on stdout in sessiond" into tizenKarol Lewandowski4-34/+29
2022-08-17[fix] sessiond: do not follow symlinks while setting the owner/groupAdam Michalski1-1/+1
of the copied files Change-Id: I64aec17972aa916d471b16684a00a073c30a2016
2022-08-17Log using DLog and not on stdout in sessiondMateusz Majewski4-34/+29
Change-Id: Id9db6b275da9964c221bcf54d36fe717deecd29f
2022-08-12Revert "Temporarily allow all dbus policy by default"Hyotaek Shim1-2/+14
This reverts commit 82d39e1f34062fa443103bc1f2980bd54e295cf2. Change-Id: I85c6780dcbe1ec4a4fd3a49e48f4d69870bb7ddd
2022-08-06library: Simplify subsession_event_wait_done() error pathKarol Lewandowski1-7/+5
Change-Id: Ic701196aa0501a5adb3a1c8742609f82ded69909
2022-08-06library: Automatically free GError* in method_call_sync()Karol Lewandowski1-6/+5
Change-Id: Iddb19ec2556106e2ac1f5052dd4512dbff43194d
2022-08-06library: Use same terms in error mapping functions (in both directions)Karol Lewandowski1-8/+5
Change-Id: I7f6e2a12a42848feabb49a34fd64633a747a7265
2022-08-06library: Drop dead code in subsession_get_current_user()Karol Lewandowski1-5/+1
We don't need to explicitly check type of returned gvariant as this will be handled by g_dbus_method_call_sync() (as invoked via method_call_sync()). Change-Id: I5327b670ec002f3be00e8fe40e8ba20314ccf3fe
2022-08-06library: Drop unused macrosKarol Lewandowski1-6/+0
Change-Id: I13314d9bd04f88ef89e7ed159456897a7d38378b
2022-08-05Release 0.6.0submit/tizen/20220805.114215accepted/tizen/unified/20220808.135312Karol Lewandowski1-1/+1
Change-Id: I52110e67708b97fa35c443d736d0edcecc27b9d5
2022-08-05library: Rework comparatorsKarol Lewandowski2-16/+16
- use assert() if our internally added data is of correct type (if it's not, it's an programming error) - use explicit typechecked_g_variant_get() Change-Id: Iad18df2f323b0d9f71edec52dbf46cebe9752a2d
2022-08-05library: Be more verbose in error messages when invalid signals are receivedKarol Lewandowski2-8/+8
Change-Id: Ibdf14033919604569182d587f3bdb99c73725ff0
2022-08-05library: Use generic method_call() in get_current_user() APIKarol Lewandowski2-32/+13
Change-Id: I6973fc7f414edb65251c8c6f90cb1d06f1a98525
2022-08-05library: Add macro to validate and get gvariant without explicit 'return'Karol Lewandowski1-0/+3
This allows more flexible handling of type errors, without creating new macro for each new case. Change-Id: I6ea3311ed24da9021e6a2b65eab31cea894ae0c0
2022-08-05library: Replace dynamic error checking with asserts in unregister()Karol Lewandowski1-9/+8
It's programming error to pass NULL callbacks_data - catch it early with assert. Change-Id: Id6ed5861c2a5ce38e0e148e9cf177170a1661d4f
2022-08-05library: fix: ensure dbus connection is avaliable in unregister_event_callbackKarol Lewandowski1-0/+1
Normally this function is called only after register function is called, which checks if dbus is available. As it's public api we must not make assumption this behaviour is followed in real code. Change-Id: I41b95bb746d954b6af66e31a0c9735d7f21e88b2
2022-08-04Unduplicate codesubmit/tizen/20220804.142848accepted/tizen/unified/20220805.131908Michal Bloch1-5/+1
Change-Id: Ic52222eb6157a5507689a3a91f6103d13de5ca02 Signed-off-by: Michal Bloch <m.bloch@samsung.com>
2022-08-04Create `apps_rw/*` subdirectories and files with [subsession_uid]:users UID:GIDAdam Michalski1-5/+9
Change-Id: I53045101838b12b983e3cb46055614dccf3ccc6f
2022-07-29Release 0.5.0submit/tizen/20220801.061355submit/tizen/20220729.133354accepted/tizen/unified/20220802.144808Karol Lewandowski1-1/+1
Bump version due to behaviour change - from now on subsession user and it's apps_rw directory is created with <session_uid>:system_share UID:GID. Change-Id: Ic26a8050769da3a3e48ac574171b528bfce195ca
2022-07-29Merge "Create subsession and `apps_rw` directories with ↵Karol Lewandowski2-3/+16
[subsession_uid]:system_share UID:GID" into tizen
2022-07-29Create subsession and `apps_rw` directories withAdam Michalski2-3/+16
[subsession_uid]:system_share UID:GID Change-Id: Ib1f8d18d715ba6ff52c97cfe78c56d00ae2e9d37
2022-07-28library: Rename async method call to follow method_call_<sync/async> conventionKarol Lewandowski1-58/+35
Additional style fixes along the way. Change-Id: I6eb43013019a0a701cc191ff25e1dd0463526124
2022-07-28library: Ensure map_dbus_call_error_to_return_value handles NULLKarol Lewandowski1-3/+4
Allowing the funcion to accept NULL GError* will allow to simplify code in other places. Change-Id: I13e172907651da119d13119a8d07c4c7906489ee
2022-07-28library: Move all of dbus signal subscription logic to register_event_callbackKarol Lewandowski1-96/+27
Change-Id: I2fa04d1095569e709adbbce6e297a68f6668fb94
2022-07-27library: Merge dbus sync call helpersKarol Lewandowski1-58/+37
This commit merges method_call_no_signal() and method_call_no_signal_return() functions into one, as the only difference between these was that returned variant was passed to caller or not._ Change-Id: Idedac845a6b9690cade29f54dc9fbc372e7a8642
2022-07-22Release 0.4.4submit/tizen/20220722.101755accepted/tizen/unified/20220726.012139Karol Lewandowski1-1/+1
Change-Id: Ic647ec27f5f86cad2e066aeef21dc81d2468c1aa
2022-07-22library: Rework client_data_cleansweep_mtKarol Lewandowski1-4/+9
This commit: - renames function to callbacks_data_remove_client_data as it operates on callbacks_data list - changes order of function paramters to follow convention used by callbacks_data_* functions - adds asserts to ensure parameters are always valid Change-Id: I0671a6a6bea783224a0bbe966bea08b4c0ec5d03
2022-07-21Merge "sessiond: Re-shuffle include files to get rid of a nasty "unused ↵Karol Lewandowski3-2/+2
variable" warning" into tizen
2022-07-21library: simplify logic in callback_data functionsMichal Bloch1-12/+17
Change-Id: I6f707a201780012a3c138fca85f7a0d0b9f9a26c
2022-07-21library: make callback functions follow subject-action conventionMichal Bloch1-11/+10
This commit renames the following functions: - take_from_callbacks_data_and_remove_from_list -> callbacks_data_pop - find_in_callbacks_data -> callbacks_data_find - subsession_register_event_in_list -> callbacks_data_push Change-Id: Iae4ec775a7626e45667452ff52dd2b19dc2dd6c8
2022-07-21Merge "clientExample: proper clean-up in case of subsession errors" into tizenKarol Lewandowski1-33/+164
2022-07-21clientExample: proper clean-up in case of subsession errorsAdam Michalski1-33/+164
Change-Id: I57682b4e7b4649af55435c70186a0a97956e10bf
2022-07-21sessiond: Re-shuffle include files to get rid of a nastyAdam Michalski3-2/+2
"unused variable" warning Change-Id: If0e3530c45e236cee1e1fe11a155a07099a0c498
2022-07-21library: Shorten client callback data allocation function nameKarol Lewandowski1-3/+3
Change-Id: If8ea696acad3ea8b8c4bd230e44bd908352c8370
2022-07-21library: Simplify comparatorsKarol Lewandowski1-87/+29
Change-Id: Ie4af052e02f5190dae542bbcc34daa495101430b
2022-07-21library: Drop registered_signal_tKarol Lewandowski1-32/+26
Change-Id: I07b7717b1e197201d10ebe25dd502d1c275903a7
2022-07-21library: Do not initialize callbacks list with placeholder elementKarol Lewandowski1-37/+14
This does not seem to be needed. Change-Id: I44196b316411673b19099aad528d20f98ad72136
2022-07-21removed unecessary NULL caseArkadiusz Nowak1-4/+1
Change-Id: I8ebbb85f323bb68c8a7efb703505d647540f0ee6
2022-07-20library: Add missing const to src userKarol Lewandowski1-1/+1
Change-Id: I92f2f615cd10ef164d70ca17456989894f601455
2022-07-20Temporarily allow all dbus policy by defaultsubmit/tizen/20220720.052140submit/tizen/20220720.014058accepted/tizen/unified/20220720.141517Hyotaek Shim1-14/+2
Change-Id: I23047031697072967a49d49fed0114a721b150a1 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2022-07-20Revert "Temporarily allow dbus policy by default"Hyotaek Shim1-1/+0
This reverts commit 330e4429171a18f5f28e49c915c507572deff539. Change-Id: I945e28a1d37b419d5a32425b79ffd999f08de9c6
2022-07-19Merge "library: Ensure subsession_user_t does not contain garbage" into tizenKarol Lewandowski1-1/+6
2022-07-19User len 19 and len 20 testsArkadiusz Nowak5-17/+40
Change-Id: Ibf7710a0248fdd0dfcafa885a1b6d9687fcce6b3
2022-07-19Temporarily allow dbus policy by defaultsubmit/tizen/20220719.043933Hyotaek Shim1-0/+1
Change-Id: Iae10d6d10904c4195e100b8631631cffebba3edf Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>