Commit Graph

30 Commits

Author SHA1 Message Date
Carsten Haitzler e8c13118eb fix mingw build for setuid fix/checks 2014-01-08 22:06:41 +09:00
Carsten Haitzler b95ef3801f setuid safeness - ensure if an app that is setuid doesn't do bad things
this makes efl ignore certain env vars for thnigs and entirely removes
user modules (that no one ever used) etc. etc. to ensure that *IF* an
app is setuid, there isn't a priv escalation path that is easy.
2014-01-08 19:46:23 +09:00
Carsten Haitzler 6f685d7608 fixme notes - fixme: many instances of module loading that bloat our mem 2014-01-06 12:16:36 +09:00
Carsten Haitzler b07c0a76ce alpha1 release autofoo/build tree work to pass distcheck and actually work 2013-11-04 18:33:35 +09:00
Stefan Schmidt 824bf92dad eeze: Remove unused var and related dead code.
Must be a leftover from older times. syspath never get set here.

CID 1039463
2013-08-07 15:18:19 +01:00
Stefan Schmidt bdd3e7e8ca eeze: Go to next loop iterate if test is NULL.
We would dereference it even if NULL one line later.

CID1039328
2013-08-07 15:18:18 +01:00
Boris 'billiob' Faure c313a46b5e eeze: do no try to match an unknown property 2013-05-12 22:22:48 +02:00
Stefan Schmidt c2da27328b eeze/sensor: Simplify object handling in async paths.
This follows the simplified handling of sensor object we are already
doing for the sync paths. Its a bit more complicated here as we need
to pass all data through the module specific async handling. But the
result should be the same.
2013-04-22 15:58:28 +01:00
Stefan Schmidt 27a711b83c eeze/sensor: Simplify sensor object handling.
We rely on the app to provide a sensible object pointer and we now longer
need to have a copy of the object around to operate on it.

Simplifies code, maintenance and reduces mem copies. Win-Win :)
2013-04-19 09:21:12 +01:00
Stefan Schmidt f4ecb5ebcc eeze/sensor: Just use one list for available modules and add udev.
The second list got introduced when eeze got merged into efl. Instead
of maintaining both lists we can just go with one.
2013-04-18 15:50:40 +01:00
Carsten Haitzler 6ccae99bd1 let's fix eeze sensors to not segv on shutdown.. dup registered fake
(udev registered it as fake)... and in the process i found that we
probably double free as sensor is calloced in the module and AGAIN in
eeze sensor core... oh and symbols probably might lak from modules..
so static them up yo.
2013-04-18 00:30:04 +09:00
Stefan Schmidt 763bdd1618 eeze/sensor: Switch timestamp to relative values coming.
Switch from absolut microseconds since epoch to a monotonic clock with
realtive values. Switch from unsigned long long to double.

This aligns it with how we present time in efl. ecore_time_get is used
when possible. For the tizen modules we convert the the epoch timestamp
we get into a double. This is still a working monotone clock source.

As this will be released the first time with 1.8 we don't have any API
break here.
2013-04-16 13:21:28 +01:00
Stefan Schmidt 6b70dd57d3 eeze/sensor: Move eeze_Sernsor_obj_get into private header.
Together with eeze_sensor_module_register/unregister these are the functions
that are irrelevant for developer when they just want to use the eeze_sensor
API.

Still all three need to be marked with EAPI as they are used in the backend
modules and due to our visibility hidden usage the module loading would fail
if we remove EAPI from them.

Moving them into the private header should give an indication that these are
not meant for pure API users.
2013-04-12 15:35:08 +01:00
Stefan Schmidt 858b45e3be eeze/sensor: Make sensor init and shutdown symbols private.
These are called only from eeze_init/shutdown. No need to have them public.
2013-04-12 11:35:05 +01:00
Stefan Schmidt c5c1af49f7 Revert "eeze/sensor: Expose less symbols for the initial API."
Sadly not ready yet as jenkins showed me. Need some more work on
the eeze_sensor_object_get front.

This reverts commit 081d55c51c.
2013-04-11 15:37:12 +01:00
Stefan Schmidt 081d55c51c eeze/sensor: Expose less symbols for the initial API.
Less is more. These symbols are only used in the internal modules and can
live in the private header without EAPI.
2013-04-11 15:03:55 +01:00
Stefan Schmidt 7ccc9f20ba eeze/sensor: Use Eeze_Sensor_Type in sensor object.
We use the typedef everywhere else. This makes sure we also use it
in the struct to avoid any confusion. The API is new for upcoming
1.8 release so no problem in changing it now.
2013-04-11 13:11:08 +01:00
Stefan Schmidt 9d47faa761 eeze/sensor: Add more sensor types used in Tizen.
Just setting up the sensor types in the lib and fake module.
2013-04-03 17:14:20 +01:00
Stefan Schmidt f7c055b0ce eeze/sensor: Setup all ecore event types in init.
We had some set up but not all. Do that and avoid the redo'ing in
eeze_sensor test.
2013-03-27 17:15:27 +00:00
Stefan Schmidt c3d8bcb56c eeze: Decrement eeze init count also in error cases 2013-03-26 11:04:07 +00:00
Stefan Schmidt 143b7fd304 eeze: Unregister all log domains in eeze shutdown.
We only unregistered _udev so far. Now also doing it for _net and _sensor
2013-03-26 09:36:09 +00:00
Stefan Schmidt 394fa35356 eeze: Make eeze sensor log domain private and use different ones for the modules
The main eeze sensor log domain was EAPI as it was used in the modules as well.
(Gives some nice runtime error when loading the shared object). Switch to different
domains for the module and make the main domain private.

Spotted by zmike.
2013-03-26 09:33:59 +00:00
Cedric Bail 12ceb717ea eeze: add a dummy implementation for when libmount is not available.
This implementation doesn't replace libmount, it just provide an empty
piece of code that will always fail to do anything. It does simplify
Eeze building and use by third party by always providing the API.
2013-03-10 15:58:29 +09:00
Cedric BAIL a05b4b4e37 eeze: fix build with recent Eina change. 2013-02-21 17:19:35 +09:00
Cedric BAIL fe21e281a7 eeze: add back support for older system.
Support for older system that don't come with libmount or have
an older libmount. This is a backport from Eeze 1.7 tree. There
is no code change there.
2013-02-21 17:19:35 +09:00
Lucas De Marchi be30200a50 eeze: install module under MODULE_ARCH like the rest of EFL
SVN revision: 82479
2013-01-09 20:51:56 +00:00
Gustavo Sverzut Barbieri b40dcff62f efl/eeze: remove unused file.
unused since old api was removed.


SVN revision: 82230
2013-01-04 19:46:51 +00:00
Gustavo Sverzut Barbieri 733425c62c efl: make libraries aware of EFL_RUN_IN_TREE.
this variable tells that the build is being done in tree and we should
not look at install locations.



SVN revision: 82217
2013-01-04 17:19:43 +00:00
Gustavo Sverzut Barbieri e4654ee6cf efl/eeze: remove other traces of old libudev support.
SVN revision: 82101
2013-01-03 20:42:37 +00:00
Gustavo Sverzut Barbieri 68188ac0c8 efl: merge eeze.
Changes also in this commit:
 * fix missing EAPI in symbols used by modules
 * removed old libudev and libmount support as agreed by discomfitor/zmike
 * replaced __UNUSED__ with EINA_UNUSED
 * fixed docs hierarchy



SVN revision: 82100
2013-01-03 20:37:42 +00:00