2018-04-29 19:16:54 +00:00
|
|
|
diff --git a/src/bin/e_auth.c b/src/bin/e_auth.c
|
2020-05-25 06:01:48 +00:00
|
|
|
index 8b0aa6641..3dff0ad84 100644
|
2018-04-29 19:16:54 +00:00
|
|
|
--- a/src/bin/e_auth.c
|
|
|
|
+++ b/src/bin/e_auth.c
|
2020-05-25 06:01:48 +00:00
|
|
|
@@ -12,8 +12,7 @@ e_auth_begin(char *passwd)
|
2020-05-11 07:12:32 +00:00
|
|
|
if (pwlen == 0) goto out;
|
2018-04-29 19:16:54 +00:00
|
|
|
|
2020-05-25 06:01:48 +00:00
|
|
|
snprintf(buf, sizeof(buf),
|
2020-05-11 07:12:32 +00:00
|
|
|
- "%s/enlightenment/utils/enlightenment_ckpasswd pw",
|
2018-04-29 19:16:54 +00:00
|
|
|
- e_prefix_lib_get());
|
2020-05-25 06:01:48 +00:00
|
|
|
+ "/run/setuid-programs/enlightenment_ckpasswd pw");
|
2020-05-11 07:12:32 +00:00
|
|
|
exe = ecore_exe_pipe_run(buf, ECORE_EXE_PIPE_WRITE, NULL);
|
|
|
|
if (!exe) goto out;
|
|
|
|
if (ecore_exe_send(exe, passwd, pwlen) != EINA_TRUE) goto out;
|
2020-05-25 06:01:48 +00:00
|
|
|
@@ -47,8 +46,7 @@ e_auth_polkit_begin(char *passwd, const char *cookie, unsigned int uid)
|
2020-05-11 07:12:32 +00:00
|
|
|
if (pwlen == 0) goto out;
|
2018-04-29 19:16:54 +00:00
|
|
|
|
2020-05-25 06:01:48 +00:00
|
|
|
snprintf(buf, sizeof(buf),
|
2020-05-11 07:12:32 +00:00
|
|
|
- "%s/enlightenment/utils/enlightenment_ckpasswd pk",
|
|
|
|
- e_prefix_lib_get());
|
2020-05-25 06:01:48 +00:00
|
|
|
+ "/run/setuid-programs/enlightenment_ckpasswd pk");
|
2018-04-29 19:16:54 +00:00
|
|
|
exe = ecore_exe_pipe_run(buf, ECORE_EXE_PIPE_WRITE, NULL);
|
2020-05-11 07:12:32 +00:00
|
|
|
if (!exe) goto out;
|
|
|
|
snprintf(buf, sizeof(buf), "%s %u %s", cookie, uid, passwd);
|
2018-04-29 19:16:54 +00:00
|
|
|
diff --git a/src/bin/e_fm/e_fm_main_eeze.c b/src/bin/e_fm/e_fm_main_eeze.c
|
2020-05-11 07:12:32 +00:00
|
|
|
index 9b10b3117..74e6b72ad 100644
|
2018-04-29 19:16:54 +00:00
|
|
|
--- a/src/bin/e_fm/e_fm_main_eeze.c
|
|
|
|
+++ b/src/bin/e_fm/e_fm_main_eeze.c
|
|
|
|
@@ -318,7 +318,7 @@ _e_fm_main_eeze_volume_eject(E_Volume *v)
|
|
|
|
{
|
|
|
|
char buf[PATH_MAX];
|
|
|
|
|
|
|
|
- snprintf(buf, sizeof(buf), "%s/enlightenment/utils/enlightenment_sys", eina_prefix_lib_get(pfx));
|
|
|
|
+ snprintf(buf, sizeof(buf), "/run/setuid-programs/enlightenment_sys");
|
|
|
|
eeze_disk_mount_wrapper_set(v->disk, buf);
|
|
|
|
}
|
|
|
|
v->guard = ecore_timer_loop_add(E_FM_EJECT_TIMEOUT, (Ecore_Task_Cb)_e_fm_main_eeze_vol_eject_timeout, v);
|
|
|
|
@@ -512,7 +512,7 @@ _e_fm_main_eeze_volume_unmount(E_Volume *v)
|
|
|
|
{
|
|
|
|
char buf[PATH_MAX];
|
|
|
|
|
|
|
|
- snprintf(buf, sizeof(buf), "%s/enlightenment/utils/enlightenment_sys", eina_prefix_lib_get(pfx));
|
|
|
|
+ snprintf(buf, sizeof(buf), "/run/setuid-programs/enlightenment_sys");
|
|
|
|
eeze_disk_mount_wrapper_set(v->disk, buf);
|
|
|
|
}
|
|
|
|
v->guard = ecore_timer_loop_add(E_FM_UNMOUNT_TIMEOUT, (Ecore_Task_Cb)_e_fm_main_eeze_vol_unmount_timeout, v);
|
|
|
|
@@ -548,7 +548,7 @@ _e_fm_main_eeze_volume_mount(E_Volume *v)
|
|
|
|
{
|
|
|
|
char buf2[PATH_MAX];
|
|
|
|
|
|
|
|
- snprintf(buf2, sizeof(buf2), "%s/enlightenment/utils/enlightenment_sys", eina_prefix_lib_get(pfx));
|
|
|
|
+ snprintf(buf2, sizeof(buf2), "/run/setuid-programs/enlightenment_sys");
|
|
|
|
eeze_disk_mount_wrapper_set(v->disk, buf2);
|
|
|
|
}
|
|
|
|
v->guard = ecore_timer_loop_add(E_FM_MOUNT_TIMEOUT, (Ecore_Task_Cb)_e_fm_main_eeze_vol_mount_timeout, v);
|
2020-05-11 07:12:32 +00:00
|
|
|
diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c
|
|
|
|
index b2c439455..cb16c7bd4 100644
|
|
|
|
--- a/src/bin/e_start_main.c
|
|
|
|
+++ b/src/bin/e_start_main.c
|
|
|
|
@@ -710,7 +710,7 @@ main(int argc, char **argv)
|
|
|
|
"E_ALERT_FONT_DIR=%s/data/fonts", eina_prefix_data_get(pfx));
|
|
|
|
putenv(buf2);
|
|
|
|
snprintf(buf3, sizeof(buf3),
|
|
|
|
- "E_ALERT_SYSTEM_BIN=%s/enlightenment/utils/enlightenment_system", eina_prefix_lib_get(pfx));
|
|
|
|
+ "E_ALERT_SYSTEM_BIN=/run/setuid-programs/enlightenment_system");
|
|
|
|
putenv(buf3);
|
2019-08-28 08:14:30 +00:00
|
|
|
|
2020-05-11 07:12:32 +00:00
|
|
|
if ((valgrind_mode || valgrind_tool) &&
|
|
|
|
diff --git a/src/bin/e_system.c b/src/bin/e_system.c
|
|
|
|
index 1e7aabb64..dc0173219 100644
|
|
|
|
--- a/src/bin/e_system.c
|
|
|
|
+++ b/src/bin/e_system.c
|
|
|
|
@@ -132,7 +132,7 @@ _system_spawn(void)
|
|
|
|
else _respawn_count = 0;
|
|
|
|
if (_respawn_count > 5) return;
|
2019-08-28 08:14:30 +00:00
|
|
|
snprintf(buf, sizeof(buf),
|
2020-05-11 07:12:32 +00:00
|
|
|
- "%s/enlightenment/utils/enlightenment_system", e_prefix_lib_get());
|
|
|
|
+ "/run/setuid-programs/enlightenment_system");
|
|
|
|
_system_exe = ecore_exe_pipe_run
|
|
|
|
(buf, ECORE_EXE_NOT_LEADER | ECORE_EXE_TERM_WITH_PARENT |
|
|
|
|
ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_WRITE, NULL);
|