Commit Graph

  • 287bcd4ddf set cwd to $APPDIR instead of $OWD master v2.0.0 Fabian-Lars 2023-01-17 20:03:27 +01:00
  • 407700ccef fix: Resolve filenames without slash '/' in execlp(), execvp(), execvpe() Alexis Lopez Zubieta 2022-04-20 12:10:20 -05:00
  • 7d66b41885 Drop apprun_resolve_bin_path and apprun_exec_adjust_path Alexis Lopez Zubieta 2022-04-19 19:42:04 -05:00
  • b7118d880a Move redirect_path into an independent module Alexis Lopez Zubieta 2022-04-19 18:33:31 -05:00
  • 159ee76522 ref: replace main hook by constructor Alexis Lopez Zubieta 2022-04-14 16:33:31 -05:00
  • 27c371750f Add NULL check to find_hooked_symbol TheBrokenRail 2022-04-14 15:14:14 -04:00
  • aed096d0a7 Remove global variable TheBrokenRail 2022-04-13 22:22:50 -04:00
  • 1ee67453c5 Use constructor function TheBrokenRail 2022-04-13 21:10:41 -04:00
  • 763923b3c9 Fix #51 TheBrokenRail 2022-04-09 19:55:04 -04:00
  • 707c401554 Feat: add modules support Alexis Lopez Zubieta 2022-04-07 17:11:39 -05:00
  • 4c1a93eaac Fix: allocate space for 0 termination in possible file path strings Alexis Lopez Zubieta 2022-04-06 15:28:56 -05:00
  • d2e272dedc Update Usage instructions Alexis Lopez Zubieta 2022-04-01 15:14:27 -06:00
  • c0bf570b89 Update readme Alexis Lopez Zubieta 2022-04-01 14:31:10 -06:00
  • c7a02dc923 ref: Implement redirect path tests Alexis Lopez Zubieta 2022-03-31 14:47:26 -06:00
  • bf1bf5455f fix: '/' added to the end of the paths when an empty path is concatenated Alexis Lopez Zubieta 2022-03-31 14:46:36 -06:00
  • 571eca4842 ref: remove unused declarations Alexis Lopez Zubieta 2022-03-31 13:41:42 -06:00
  • e80131c5a6 ref: remove unused imports Alexis Lopez Zubieta 2022-03-31 13:40:59 -06:00
  • ed2627f624 feat/implement execl functions family Alexis Lopez Zubieta 2022-03-31 13:40:39 -06:00
  • 288a346ab8 feat/implement execle hook Alexis Lopez Zubieta 2022-03-31 13:39:48 -06:00
  • 4c84cb1167 feat/implement execl hook Alexis Lopez Zubieta 2022-03-31 13:25:43 -06:00
  • 734ba4855a ref: remove unused declaration Alexis Lopez Zubieta 2022-03-31 13:18:41 -06:00
  • 9499b2db2a Implement execlp hook Alexis Lopez Zubieta 2022-03-31 12:45:06 -06:00
  • d55f3eeac0 Add execlp testcase Alexis Lopez Zubieta 2022-03-31 11:57:50 -06:00
  • 2496b39290 Fix: original working directory not restored if execve call fails Alexis Lopez Zubieta 2022-03-30 23:20:41 -06:00
  • 1b57cd8fdc Implement apprun_print_env Alexis Lopez Zubieta 2022-03-30 23:19:12 -06:00
  • 4794dcd3c7 Use APPRUN_STARTUP_APPDIR instead of APPDIR when guessing if a target exe is internal Alexis Lopez Zubieta 2022-03-26 22:22:05 -06:00
  • b6d91344f9 Disable debug un create_appdir.sh Alexis Lopez Zubieta 2022-03-25 14:06:41 -06:00
  • f18efef301 Drop unused .env test resource Alexis Lopez Zubieta 2022-03-25 14:04:59 -06:00
  • dcdac25dfd Test executing scripts using bundled interpreter Alexis Lopez Zubieta 2022-03-25 14:04:42 -06:00
  • 540b4be41d Restore runtimes Alexis Lopez Zubieta 2022-03-25 13:59:48 -06:00
  • fa0e271aa3 Drop reference to runtimes Alexis Lopez Zubieta 2022-03-24 22:40:04 -06:00
  • 591c57f8ad Merge branch 'master' of github.com:AppImageCrafters/AppRun Alexis Lopez Zubieta 2022-03-24 22:39:01 -06:00
  • 085d843c4b Fix libc prefix on tests Alexis Lopez Zubieta 2022-03-24 22:30:57 -06:00
  • f61061b89a Fix APPDIR_PATH_MAPPINGS_ENV on tests Alexis Lopez Zubieta 2022-03-24 22:30:33 -06:00
  • e7867c2803 Don't required LD_PRELOAD to be defined in the AppRun.env file Alexis Lopez Zubieta 2022-03-24 22:24:01 -06:00
  • 724785c771 Normalise interpreter setup related environments according to the USAGE document Alexis Lopez Zubieta 2022-03-24 21:56:59 -06:00
  • aaa6f0c7f1 Redefine LD_PATHS as APPDIR_LIBC_LINKER_PATH Alexis Lopez Zubieta 2022-03-24 21:14:36 -06:00
  • 7ce9586802 Normalize env usage in mock.AppDir Alexis Lopez Zubieta 2022-03-24 21:10:33 -06:00
  • 8129875ede Define normalized environment names on the usage document Alexis Lopez Zubieta 2022-03-24 21:10:10 -06:00
  • 425404c811 Add execvl hooks to the readmap Alexis Lopez Zubieta 2022-03-24 19:32:41 -06:00
  • 89af83e325 Add a note recommending to use appimage-builder for application packaging. Alexis Lopez Zubieta 2022-03-24 19:30:55 -06:00
  • 9d55f7f1e6 Add execvl hooks to the readmap Alexis Lopez Zubieta 2022-03-24 19:32:41 -06:00
  • e87688f20f Add a note recommending to use appimage-builder for application packaging. Alexis Lopez Zubieta 2022-03-24 19:30:55 -06:00
  • 6b57bd85cb Split usage instructions from readme Alexis Lopez Zubieta 2022-03-24 15:29:03 -06:00
  • ca32f417d7 feat: consider scripts interpreter when guessing the runtime environment to be used Alexis Lopez Zubieta 2022-03-22 12:48:27 -06:00
  • 23d3ae5c32 Use gnu_get_libc_version and APPDIR_LIBC_VERSION env to resolve libc versions Alexis Lopez Zubieta 2022-03-10 13:26:45 -06:00
  • ddd8c6a9cd Make compare_version_strings receive const strings Alexis Lopez Zubieta 2022-03-10 13:26:18 -06:00
  • 0a75093fdc Make AppRun dynamically linked Alexis Lopez Zubieta 2022-03-10 13:24:33 -06:00
  • d4672e2eaa Update tagged release workflow to use docker container builds Alexis Lopez Zubieta 2022-03-07 16:19:04 -06:00
  • 28af44d54b Fix build artifacts paths Alexis Lopez Zubieta 2022-03-07 16:15:59 -06:00
  • 338c9b370f Fix build artifacts paths Alexis Lopez Zubieta 2022-03-07 16:08:43 -06:00
  • ceca9b169b Update pre-lease github workflow to build in docker containers Alexis Lopez Zubieta 2022-03-07 16:01:33 -06:00
  • 103d64615f restore gnueabihf, and aarch64 builds Alexis Lopez Zubieta 2022-03-07 15:52:29 -06:00
  • 938538dc3c Hook __realpath_chk function which is a glibc specific symbol but should not hurt Alexis Lopez Zubieta 2022-03-07 15:50:07 -06:00
  • 17206a5c5a prefix apprun related functions to prevent name clashes Alexis Lopez Zubieta 2022-02-27 14:07:23 -06:00
  • 304e154717 fix: build test only in i386 and x86_64 archs Alexis Lopez Zubieta 2022-02-25 01:34:55 -06:00
  • 2a3dfc9bfd fix: don't use absolute paths in AppDir mock env Alexis Lopez Zubieta 2022-02-25 01:28:49 -06:00
  • ecb353786a fix: test not building in cross-compilation docker images Alexis Lopez Zubieta 2022-02-25 01:17:58 -06:00
  • f011a4aec9 ref: use relative path on AppDir mock symlink Alexis Lopez Zubieta 2022-02-25 01:00:10 -06:00
  • de519e7b8e ref: drop redundant test cases TEST_APPRUN_EXEC_AND_CHECK_PWD_CHANGED and TEST_APPRUN_EXEC_AND_CHECK_PWD_NOT_CHANGED Alexis Lopez Zubieta 2022-02-25 00:40:24 -06:00
  • 555a47638f fix: binary path on TEST_EXECV_HOOK_ON_INNER_TARGET Alexis Lopez Zubieta 2022-02-25 00:38:20 -06:00
  • 23f7469781 fix: replace bash binary usage on TEST_PATH Alexis Lopez Zubieta 2022-02-25 00:35:30 -06:00
  • 64b13eb65f ref: build AppDir mock using only built binaries Alexis Lopez Zubieta 2022-02-25 00:32:21 -06:00
  • 4ebbef82af ref: pass build dir instead of the specific binary paths to the create_appdir script Alexis Lopez Zubieta 2022-02-25 00:16:42 -06:00
  • f0a99a177a Fix/replace deprecated GitHub ci build env (#39) Alexis López Zubieta 2022-02-25 00:03:13 -06:00
  • f7113bd6a2 fix: paths contains multiple slashes Alexis Lopez Zubieta 2022-02-23 20:42:53 -06:00
  • cf63deb98b fix: adjust expected result of test_apprun_resolve_absolute_bin_path taking considering the new symbolic link included in the AppDir Alexis Lopez Zubieta 2022-02-23 18:31:15 -06:00
  • d70dcd6080 include symbolic link to bash in the AppDir mock Alexis Lopez Zubieta 2022-02-23 18:29:35 -06:00
  • 15a37d8d51 fix: cleanup and fix file_utils_test Alexis Lopez Zubieta 2022-02-23 18:20:47 -06:00
  • 55b0233c2c fix: correct path utils tests Alexis Lopez Zubieta 2022-02-23 17:39:48 -06:00
  • af0f0a26b0 feat: add unset_private_env to tests shared Alexis Lopez Zubieta 2022-02-23 17:39:22 -06:00
  • 0fe45a5487 fix: don't check APPDIR env on redirect_path_full Alexis Lopez Zubieta 2022-02-23 17:39:01 -06:00
  • 043b756edf drop legacy hooks tests Alexis Lopez Zubieta 2022-02-23 12:43:06 -06:00
  • e6a7431248 test realpath with/without resolved_path param Alexis Lopez Zubieta 2022-02-23 12:41:46 -06:00
  • 4a2593549d fix: realpath hook set an empty string on resolved_path in case of NULL result Alexis Lopez Zubieta 2022-02-23 12:41:04 -06:00
  • 07607e08de fix: hooks test Alexis Lopez Zubieta 2022-02-23 12:05:52 -06:00
  • ce8f09b13b add execv hook test on outer target Alexis Lopez Zubieta 2022-02-23 11:54:18 -06:00
  • 574007a940 create exec test case configuration function Alexis Lopez Zubieta 2022-02-23 11:30:59 -06:00
  • c43ea41c73 ref: redefine exec_hooks_test as inner_target_exec_hooks_test Alexis Lopez Zubieta 2022-02-23 11:21:19 -06:00
  • 1571c4e2a0 fix: don't remove appdir.mock on rebuild Alexis Lopez Zubieta 2022-02-22 23:00:34 -06:00
  • c1b0534139 fix: allocation error at apprun_envp_set Alexis Lopez Zubieta 2022-02-22 20:04:59 -06:00
  • c038e4cb0d improve symbols logging by excluding __libc_main Alexis Lopez Zubieta 2022-02-22 18:55:17 -06:00
  • b7f91640ce ref: rearrange code Alexis Lopez Zubieta 2022-02-22 18:31:04 -06:00
  • 1fa6cd4880 ref: move apprun_adjusted_exec_args to exec_utils Alexis Lopez Zubieta 2022-02-22 18:20:05 -06:00
  • 5effadfba5 ref: move chdir_to_runtime to exec_utils Alexis Lopez Zubieta 2022-02-22 17:52:20 -06:00
  • 07828e6d65 ref: move apprun_set_original_workdir_env to exec_utils Alexis Lopez Zubieta 2022-02-22 17:50:37 -06:00
  • ff6ce2e2d7 ref: rename exec args to exec_utils Alexis Lopez Zubieta 2022-02-22 17:49:10 -06:00
  • 2dde179026 ref: only chdir if the APPRUN_ENV_RUNTIME is set and valid Alexis Lopez Zubieta 2022-02-22 17:00:15 -06:00
  • 3fd70085e0 ref: drop unused function apprun_format_original_cwd_env Alexis Lopez Zubieta 2022-02-22 16:59:26 -06:00
  • b8079c557c fix: exec_hooks_test fork and execv implementation Alexis Lopez Zubieta 2022-02-22 16:33:58 -06:00
  • b52b263d46 drop apprun_is_exported_binary Alexis Lopez Zubieta 2022-02-22 16:33:11 -06:00
  • b1e32638bf add outer target test Alexis Lopez Zubieta 2022-02-22 10:41:23 -06:00
  • f04bb8b3b5 test execv on internal target Alexis Lopez Zubieta 2022-02-21 23:51:49 -06:00
  • 89c1481ae9 add hooks inner target test Alexis Lopez Zubieta 2022-02-21 19:31:52 -06:00
  • 35ef4d00f8 ref: extract appdir mock test to the test root dir Alexis Lopez Zubieta 2022-02-21 19:07:51 -06:00
  • d6ffac45ba ref: improve hooks tests Alexis Lopez Zubieta 2022-02-21 18:29:56 -06:00
  • 834353b0b1 ref: Make runtime linker switch using runtimes Alexis Lopez Zubieta 2022-02-17 16:06:31 -06:00
  • cc4991e2a2 Set cmake 3.2 as minimal requirement (2.8 will be reach EOL soon) Alexis Lopez Zubieta 2022-02-16 19:38:47 -06:00
  • 32ba3f7c94 Use dynamic linker version instead of libc version Alexis Lopez Zubieta 2022-02-16 19:38:10 -06:00
  • f86e8bf726 Hook __libc_start_main to allow setting the current working directory from APPRUN_OWD Alexis Lopez Zubieta 2022-02-16 15:45:34 -06:00