summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Adam Michalski [Fri, 13 May 2022 16:45:04 +0000 (18:45 +0200)]
Add validity checks for `SwitchUser` method
Change-Id: I586044883648768d682c70757b521564ea57d17e
Michal Bloch [Thu, 12 May 2022 11:40:27 +0000 (13:40 +0200)]
Deduce an array type
Change-Id: I57189a88fe01aca471472ed5c6933a5803fd0FCA
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Arkadiusz Nowak [Thu, 12 May 2022 12:55:56 +0000 (14:55 +0200)]
remove 'prev_user' parameter from libsessiond
Change-Id: I459e947e3a2177f66f327359a4a9e77aa0da7d8f
Adam Michalski [Thu, 12 May 2022 12:45:29 +0000 (14:45 +0200)]
Remove redundant `prev_subsession_id` parameter from the
`SwitchUser` method
Change-Id: Ice4709be50884f8dc807edbba5f17555bbcb1a3f
Adam Michalski [Tue, 10 May 2022 15:03:39 +0000 (17:03 +0200)]
Implement server-side GetCurrentUser method
Change-Id: I765ee5179e4cf4f9c849a7946ee18f5e0fc47b01
Hubert Kowalski [Wed, 27 Apr 2022 12:51:53 +0000 (14:51 +0200)]
Added subsession_unregister_event_callback()
This function unsibscribes event callback by uid and removing it from list.
removed unused unsubscribe handler
API function change:
from subsession_remove_event_callback
to subsession_unregister_event_callback
Change-Id: If58381dfa17c27ce2764aeabf8d698212561ab17
Arkadiusz Nowak [Tue, 26 Apr 2022 08:15:10 +0000 (10:15 +0200)]
Event's callback registration
Register callback for method - signal:
AddUserWait - AddUserStarted,
RemoveUserWait - RemoveUserStarted,
SwitchUserWait - SwitchUserStarted,
registered by API function:
subsession_register_event_callback
with tests.
API function subsession_switch_wait_done
(called by callback)
More descriptive error codes
Removed deprecated functions
Change-Id: I307fe0fc624292a9c3408169e6653e2eed07544b
Arkadiusz Nowak [Mon, 25 Apr 2022 12:17:49 +0000 (14:17 +0200)]
Add handler for SUBSESSION_SWITCH_USER_WAIT and SUBSESSION_SWITCH_USER_COMPLETION
Change methods calls in callbacks data to correct ones.
Remove unused parameter "event_bits" in register_event_callback and subscribe_only_callback
Change-Id: If451d81d5ab193061a0ab46ddd61fa9d3769526d
Adam Michalski [Tue, 10 May 2022 15:25:49 +0000 (17:25 +0200)]
[fix] Add input parameter validation for GetUserList
Change-Id: Ide73c817315e939ffffc92e96f2b608ec85b482b
Karol Lewandowski [Mon, 9 May 2022 12:03:31 +0000 (12:03 +0000)]
Merge "[fix] Add logging `invalid_argument` exception" into devel
Karol Lewandowski [Mon, 9 May 2022 11:58:05 +0000 (11:58 +0000)]
Merge changes Ifa0cbed1,I766670d5,I03094609,I57c9e563 into devel
* changes:
wait_manager: Add some prose
Add privacy to wait_manager
Split wait_manager arguments
Extract `wait_manager` template class into a separate file
Mateusz Majewski [Thu, 5 May 2022 12:42:17 +0000 (14:42 +0200)]
wait_manager: Add some prose
Change-Id: Ifa0cbed179e24bd7a840f578c91daae81268eca9
Mateusz Majewski [Thu, 5 May 2022 09:55:54 +0000 (11:55 +0200)]
Add privacy to wait_manager
Change-Id: I766670d51f4f062b1113e788c1967e1ad473b2c6
Mateusz Majewski [Thu, 5 May 2022 09:34:49 +0000 (11:34 +0200)]
Split wait_manager arguments
Change-Id: I03094609fab5072507081ee2ec4b437d3e602583
Adam Michalski [Fri, 29 Apr 2022 17:13:16 +0000 (19:13 +0200)]
fs-helpers: Refactor some code
Change-Id: Idbfdcc8fd014075781f7cd34da187d8754763532
Adam Michalski [Mon, 2 May 2022 16:11:33 +0000 (18:11 +0200)]
Extract `wait_manager` template class into a separate file
Change-Id: I57c9e56335a9365bcbdbf6a522a3fd32581a7dee
Adam Michalski [Fri, 29 Apr 2022 17:31:13 +0000 (19:31 +0200)]
[fix] Add logging `invalid_argument` exception
Change-Id: Ib4aca9a90aad633e6b9c2ebc832589a476da66a0
Mateusz Majewski [Fri, 6 May 2022 10:41:45 +0000 (12:41 +0200)]
Add sessiond unavailability detection
Change-Id: If7b2cfb4852dfa2550659e2eeadee83073261e0f
Karol Lewandowski [Mon, 25 Apr 2022 12:34:27 +0000 (14:34 +0200)]
api: Add subsession-specific error codes for use in the API
Additionally, move data types to the beginning of the header file
for readability.
Change-Id: Ie30cecf6a89ce56a13820ff95112bad715870d81
Adam Michalski [Thu, 28 Apr 2022 13:11:46 +0000 (15:11 +0200)]
fs-helpers: [fix] Keep owner of files/directories while copying
Seems that `std::filesystem` doesn't know the concept of Unix
file/directory ownership. It does preserve permissions while copying,
but unfortunately does not preserve the ownership.
Change-Id: I0492b7beef2460bd4ce71fba34553e52dc299b54
Mateusz Majewski [Mon, 25 Apr 2022 05:55:17 +0000 (07:55 +0200)]
Implement get_user_list library-side
Change-Id: I453a35620069864b62cbae920f0e78b0acb2b971
Arkadiusz Nowak [Thu, 14 Apr 2022 18:27:12 +0000 (20:27 +0200)]
Rework API according to new specification.
This commit unifies separate wait callback registration
and handling functions into one - registration now accepts
bitmask of callback types.
User callbacks accepts incoming data as union.
Icrease dbus mtehod call timeout to 20s, because filesystem's operations needs longer time to complete.
Library is going to use dlog.
Change-Id: I438ca52fcc16a145254686a19e0db4980edfd8df
Mateusz Majewski [Tue, 26 Apr 2022 12:15:56 +0000 (14:15 +0200)]
Implement GetUserList method
Change-Id: Ifbf8c8707afdcf8acaaf9e55472df3458af8f1a8
Adam Michalski [Mon, 25 Apr 2022 15:04:46 +0000 (17:04 +0200)]
Add fs-helper function for `get_user_list()` API call
Change-Id: I6781895f195591737ad1a1f60149d91e86d3c317
Mateusz Majewski [Mon, 25 Apr 2022 06:46:24 +0000 (08:46 +0200)]
Wider and more precise error handling
Handle `InvalidArgs` separately from `Failed`
Change-Id: I01049d2bbea575121e30950f4ff63137cad26e96
Karol Lewandowski [Mon, 25 Apr 2022 10:14:53 +0000 (10:14 +0000)]
Merge "Add GetUserList sessiond stub" into tizen
Karol Lewandowski [Mon, 25 Apr 2022 10:13:43 +0000 (10:13 +0000)]
Merge "Remove a needless conversion, no strings attached" into tizen
Mateusz Majewski [Mon, 25 Apr 2022 05:55:02 +0000 (07:55 +0200)]
Add GetUserList sessiond stub
Change-Id: Ib03474a8692204b458c0d17c44a5c38286664ed0
Hyotaek Shim [Mon, 25 Apr 2022 05:36:29 +0000 (14:36 +0900)]
Enable tests by fixing build dependency to use gtest-devel
Old version gtest does not provide pkgconfig(gtest).
Change-Id: I929c702514f9322a258a1a7afd3df422bb29dc9f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 25 Apr 2022 01:25:20 +0000 (10:25 +0900)]
Disable tests temporarily to avoid build error with old gtest (version 1.8)
nothing provides pkgconfig(gtest)
Change-Id: I2a1f29adeeb769dd1f7898dda02326fffe4c2d10
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Michal Bloch [Fri, 22 Apr 2022 17:48:14 +0000 (19:48 +0200)]
Remove a needless conversion, no strings attached
Change-Id: Ib630e38df75532e93e0a5785bb904390cbfecb80
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Karol Lewandowski [Thu, 14 Apr 2022 12:15:21 +0000 (14:15 +0200)]
sessiond: Be a more explicit what dbus error returned to client means
Change-Id: I94cc280c032063f4fe57c93e4f144c602ff3b432
Adam Michalski [Tue, 19 Apr 2022 15:43:40 +0000 (17:43 +0200)]
Create `subsession` directory if it does not exist
This commit also reverts the workaround introduced in
commit: '
cf8d3a09'
Change-Id: Icc405702985a57d234c4c8ad9e8a6575c1e9c52a
Karol Lewandowski [Fri, 22 Apr 2022 08:49:46 +0000 (08:49 +0000)]
Merge "Implement function visibility" into tizen
Karol Lewandowski [Fri, 22 Apr 2022 08:49:46 +0000 (08:49 +0000)]
Merge changes into tizen
Mateusz Majewski [Fri, 22 Apr 2022 08:17:38 +0000 (10:17 +0200)]
Implement function visibility
Change-Id: Iba7420a35eda01d38026f4207ea9cce2e924a666
Mateusz Majewski [Wed, 20 Apr 2022 07:50:31 +0000 (09:50 +0200)]
Split tuple_hash into a separate file
Change-Id: I7c87451bf44bd7173c1adb13cbae126484574c45
Mateusz Majewski [Fri, 22 Apr 2022 06:17:31 +0000 (08:17 +0200)]
Drop status_code
Change-Id: I78d47535f1633cb7510a43e1ecbaa6faed3894cd
Mateusz Majewski [Wed, 20 Apr 2022 08:21:50 +0000 (10:21 +0200)]
Fix various SVACE issues
Change-Id: I8222b6956c1725cc449293b232d535428e3e3992
Hyotaek Shim [Wed, 20 Apr 2022 08:04:32 +0000 (17:04 +0900)]
Add signature in sessiond.service for VD root service filtering
Change-Id: I5d7db6d002089759527c44f34c0825ec85791fcc
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 20 Apr 2022 06:54:00 +0000 (15:54 +0900)]
Add -Werror=missing-field-initializers to prevent build errors in product build environment
[ 29s] /home/abuild/rpmbuild/BUILD/sessiond-0.1/sessiond/src/main.cpp:526:2:
error: missing initializer for member '_GDBusInterfaceVTable::get_property' [-Werror=missing-field-initializers]
[ 29s] 526 | };
[ 29s] | ^
[ 29s] /home/abuild/rpmbuild/BUILD/sessiond-0.1/sessiond/src/main.cpp:526:2:
error: missing initializer for member '_GDBusInterfaceVTable::set_property' [-Werror=missing-field-initializers]
[ 29s] /home/abuild/rpmbuild/BUILD/sessiond-0.1/sessiond/src/main.cpp:526:2:
error: missing initializer for member '_GDBusInterfaceVTable::padding' [-Werror=missing-field-initializers]
Change-Id: Idb01ce53053b00c9c1a3b7b565cda37321f47db6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Wed, 20 Apr 2022 05:40:34 +0000 (14:40 +0900)]
Add -Wno-error=shadow build option
In some different build environment (e.g., product divisions),
several strict compilation options (e.g., -Werror=shadow) are added.
"Shadowing" is intentional and not a bug in sessiond implementation,
so that we avoid the following build errors by adding -Wno-error=shadow.
[ 29s] /home/abuild/rpmbuild/BUILD/sessiond-0.1/sessiond/src/main.cpp:133:4: error:
declaration of 'completion_signal' shadows a member of 'wait_manager<Vs>' [-Werror=shadow]
[ 29s] 133 | : session_uid(session_uid), connection(connection), completion_signal(completion_signal) {}
[ 29s] | ^
[ 29s] /home/abuild/rpmbuild/BUILD/sessiond-0.1/sessiond/src/main.cpp:286:19: note: shadowed declaration is here
[ 29s] 286 | std::string_view completion_signal;
[ 29s] | ^~~~~~~~~~~~~~~~~
Change-Id: Ie0503dd49d5f5851ec2866a87c420cc44dc3b6ef
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Hyotaek Shim [Mon, 18 Apr 2022 02:06:09 +0000 (11:06 +0900)]
Apply default deny and add rules to dbus policy
Change-Id: I949f9f0cfa6308e35873f2eb25b91e2fb35d7584
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Karol Lewandowski [Fri, 15 Apr 2022 09:29:26 +0000 (09:29 +0000)]
Merge changes I7dc28d8f,I0deccb0b into tizen
* changes:
Release 0.1
workaround: Pre-create subsessions dir for owner
Adam Michalski [Fri, 15 Apr 2022 08:39:57 +0000 (10:39 +0200)]
fs-helpers: [fix] Do not follow symlinks while copying
Change-Id: I49d065b70403596f3bc99dfa382700a500ac419c
Karol Lewandowski [Fri, 15 Apr 2022 08:05:02 +0000 (10:05 +0200)]
Release 0.1
Change-Id: I7dc28d8fe4cac56f9b7e6d861ca38558944cd08f
Karol Lewandowski [Thu, 14 Apr 2022 18:33:06 +0000 (20:33 +0200)]
workaround: Pre-create subsessions dir for owner
Change-Id: I0deccb0b0dd8ebf3e1b9c9103c9d33013e91cd06
Adam Michalski [Thu, 14 Apr 2022 13:28:46 +0000 (15:28 +0200)]
Add copying SMACK attributes
Change-Id: I93cf1b0e751e2fc88062680705aa727c9f71106a
Karol Lewandowski [Thu, 14 Apr 2022 15:20:15 +0000 (17:20 +0200)]
lib: Ensure public functions are prefixed with subsession_
Get rid of unprefixed types like `reply_callback` and similar - these
are likely to cause conflicts with other programs.
Change-Id: I2e0e814ad25cd187811e4e9d2af710035f51df36
Arkadiusz Nowak [Tue, 22 Mar 2022 07:37:26 +0000 (08:37 +0100)]
libsessiond API.
subsession_add_user
subsession_remove_user
subsession_switch_user
subsession_add_user_wait_callback
subsession_add_user_wait_done
subsession_remove_user_wait_callback
subsession_remove_user_wait_done
Change-Id: I52ef7ea8aec569e3995f06ce3d2bd92159736f7e
Mateusz Majewski [Wed, 13 Apr 2022 16:41:26 +0000 (18:41 +0200)]
Add some extra params to signals
Change-Id: Ic1180f5417fc8e310a05026e6493f4e9379c9f22
Karol Lewandowski [Thu, 14 Apr 2022 11:34:02 +0000 (11:34 +0000)]
Merge "Improve exception handling in sessiond" into tizen
Adam Michalski [Wed, 13 Apr 2022 17:15:06 +0000 (19:15 +0200)]
Add copying/deleting user subsession data to d-bus method call handlers
Change-Id: I756c1665122c9780db113588b2ada05ac6c6aa0d
Adam Michalski [Tue, 12 Apr 2022 16:23:50 +0000 (18:23 +0200)]
Improve exception handling in sessiond
Change-Id: Ie20c25e12a650bf4f64009e3bdb74b413e491d8a
Karol Lewandowski [Wed, 13 Apr 2022 13:27:25 +0000 (15:27 +0200)]
doc: Add status_code to Completed signal(s)
It seems we have not provided any means to return if operations
have succeeded or not.
This commit introduces `status_code` field, which allows service
to return status, if/as needed.
Surely, adding signals <Operation>Failed would be better from
design perspective, and might be considered in future if time
allows (dbus signals are private interface and subject to change
without notice).
Change-Id: Ib77681597c6633c62ae0936040f26633a9bdad05
Adam Michalski [Fri, 8 Apr 2022 16:12:33 +0000 (18:12 +0200)]
Fix source and destination copy directories
According to the latest e-mail settlements only the apps_rw subdirectory
should be copied, not the whole /etc/skel content.
Change-Id: I02b804a3042737d3615d3754db43951985b2dc22
Mateusz Majewski [Thu, 7 Apr 2022 14:51:45 +0000 (16:51 +0200)]
Implement waiting
Change-Id: I166d08afff725ac0c5d22bd92f05b47f76f10e9c
Mateusz Majewski [Fri, 8 Apr 2022 06:45:23 +0000 (08:45 +0200)]
Save connection in the sessiond_struct
Change-Id: I84ec3ad389ed1ead77006359aeae1a92cdcd16fc
Mateusz Majewski [Fri, 8 Apr 2022 06:38:51 +0000 (08:38 +0200)]
Propagate sender name to on_* methods
Change-Id: I01405a4741626d1b98736637aa151e0777ed8362
Mateusz Majewski [Thu, 7 Apr 2022 14:51:36 +0000 (16:51 +0200)]
Generate switch_ids
Change-Id: Ic4c99ed0052715bff7d391daeb9a338eb82e7ade
Mateusz Majewski [Wed, 6 Apr 2022 07:26:57 +0000 (09:26 +0200)]
Add g_variant helpers
Not really needed now, but they will be crucial for the timeout/wait
infrastructure.
Change-Id: I8c091bb5f95b81afd9da49d4b46828746c063717
Co-authored-by: MichaĆ Bloch <m.bloch@samsung.com>
Mateusz Majewski [Wed, 30 Mar 2022 11:20:39 +0000 (13:20 +0200)]
Add some sample signals
Change-Id: Ibd43c3ae3f17672e30f33295348ad360b750b310
Hyotaek Shim [Fri, 8 Apr 2022 01:50:26 +0000 (10:50 +0900)]
Declare DAC credentials in sessiond.service
Change-Id: I0ab1e061b35ec92f497b9de3026c578b04ae7ab2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Karol Lewandowski [Thu, 7 Apr 2022 14:06:52 +0000 (16:06 +0200)]
Enable PIE build globally for ASLR to work
Change-Id: Ib1a568e1a5e17dedf9480c0acae4d093b455e0d4
Karol Lewandowski [Thu, 7 Apr 2022 12:32:41 +0000 (12:32 +0000)]
Merge "Add file system helper functions needed by the service" into tizen
Mateusz Majewski [Wed, 6 Apr 2022 10:04:03 +0000 (12:04 +0200)]
Actually pass the struct to the callback
Change-Id: I15d555dcc7d9ec71fce2575e93319005a3cea1f4
Adam Michalski [Thu, 24 Mar 2022 17:35:10 +0000 (18:35 +0100)]
Add file system helper functions needed by the service
File system helpers that are going to be used by the AddUser and RemoveUser calls.
Change-Id: Ib392c6630172bb69552b6480072139d1ad985643
Mateusz Majewski [Thu, 7 Apr 2022 11:24:25 +0000 (13:24 +0200)]
Catch exceptions in main
Otherwise, SVACE complains.
Change-Id: I174d73efe7e0342e00894dcd2c224d5cddac7b32
Arkadiusz Nowak [Wed, 6 Apr 2022 10:50:50 +0000 (12:50 +0200)]
Added subsession_get_current_user and subsession_is_supported declarations
Change-Id: I85cc2deb0675a040fff006d9c0563a27f7f8938e
Mateusz Majewski [Wed, 23 Mar 2022 12:37:02 +0000 (13:37 +0100)]
Add DBus interface documentation
Change-Id: I5fa963b5073f8939f9a13a5fa2db19afb90be501
Mateusz Majewski [Wed, 23 Mar 2022 07:34:20 +0000 (08:34 +0100)]
Add some sample methods
Change-Id: I86f5872692d058a8299417e1369718b266314374
Mateusz Majewski [Wed, 23 Mar 2022 07:33:44 +0000 (08:33 +0100)]
Drop unnecessary name
Oops!
Change-Id: Ibb41d4dea9218f51177ccadfa3a3b92ae9bf0985
Mateusz Majewski [Fri, 18 Mar 2022 10:44:42 +0000 (11:44 +0100)]
Add dbus service skeleton
This commits adds basic dbus-service, able to handle method call on
system bus.
Change-Id: I6cbd84c314010be185ae00f61895edd9c69f2347
Arkadiusz Nowak [Tue, 15 Mar 2022 06:27:50 +0000 (07:27 +0100)]
initial test
Change-Id: I17c970265dae1054b50f48f75c01c8858b8494f2
Mateusz Majewski [Tue, 8 Mar 2022 11:16:46 +0000 (12:16 +0100)]
Initial template
Change-Id: I943df0532a6a9ca76a68b461a23714a349ee4ab7
Tizen Infrastructure [Thu, 24 Feb 2022 04:59:33 +0000 (04:59 +0000)]
Initial empty repository