From 209b0bd11a6762313dc7d5512cced0e79cba1e64 Mon Sep 17 00:00:00 2001 From: throwaway96 <68320646+throwaway96@users.noreply.github.com> Date: Sat, 6 Jan 2024 23:07:46 -0500 Subject: [PATCH 1/2] overlays: add some info and a link webOS 1 does not have overlayfs support. --- content/pages/hacking/overlays.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/content/pages/hacking/overlays.md b/content/pages/hacking/overlays.md index 0389767..c1e4557 100644 --- a/content/pages/hacking/overlays.md +++ b/content/pages/hacking/overlays.md @@ -7,7 +7,7 @@ Most of webOS filesystem is read-only. All read-only partitions are stored as on Android devices. In order to apply system config-level changes on read-only partitions we need -to apply these in runtime. +to apply these at runtime. ## Replacing files/whole directories A simple method of replacing/modifying single files is using `mount --bind`, @@ -29,8 +29,8 @@ mount --bind /tmp/my-example-directory /etc/ssl/certs An example of an app that uses this method is [custom screensaver](https://github.com/webosbrew/custom-screensaver/blob/main/assets/apply.sh). ## Adding files to an existing directory -If one needs to add a file into a directory `overlayfs` may be used. Little -example here will add an additional service to SSAP server: +If one needs to create a file that doesn't already exist, `overlayfs` may be used. The little +example here will add an additional service to the SSAP server: ```sh # Create config overrides directory on writable partition @@ -48,6 +48,11 @@ mount -t overlay overlay -olowerdir=/usr/palm/services/com.webos.service.seconds pkill -9 -f ss.apiadapter ; pkill -9 -f ss.gateway ``` +See the Linux kernel +[Overlay Filesystem documentation](https://docs.kernel.org/filesystems/overlayfs.html) +for more information. Note that `overlayfs` is not available on webOS 1, as the +kernel is too old. + ## Making a whole directory writable It is possible to make a whole directory writable by creating a writable overlay. This is generally discouraged for homebrew use, since underlying files From adf96afd30755dc355bfac0d2e53f3bbabdf5b5b Mon Sep 17 00:00:00 2001 From: throwaway96 <68320646+throwaway96@users.noreply.github.com> Date: Sat, 17 Feb 2024 17:27:00 -0500 Subject: [PATCH 2/2] rooting: add WTA; update patch status --- content/pages/rooting/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/pages/rooting/index.md b/content/pages/rooting/index.md index 2e7fbb5..e6b840d 100644 --- a/content/pages/rooting/index.md +++ b/content/pages/rooting/index.md @@ -43,11 +43,12 @@ Using [dev-manager-desktop](https://github.com/webosbrew/dev-manager-desktop) ma ## I Want Root Anyway! -As of November 2023, LG has released multiple patches for the vulnerbilities we found. +As of February 2024, LG has released multiple patches for the vulnerabilities we found. Depending on the firmware and model, there are multiple approaches to rooting a webOS TV. -- [RootMy.TV](https://rootmy.tv/) - For webOS 3.4 and up, but very likely patched -- [crashd](https://gist.github.com/throwaway96/e811b0f7cc2a705a5a476a8dfa45e09f) - For webOS 4.0 and up; partially patched, but workarounds available +- [RootMy.TV](https://rootmy.tv/) - For webOS 3.4 and up, but very likely patched (read the [README](https://github.com/RootMyTV/RootMyTV.github.io?tab=readme-ov-file#readme) first!) +- [crashd](https://gist.github.com/throwaway96/e811b0f7cc2a705a5a476a8dfa45e09f) - For webOS 4.0 and up; patches being rolled out +- [WTA](https://gist.github.com/throwaway96/b171240ef59d7f5fd6fb48fc6dfd2941) - For webOS 5 and up; patches being rolled out - [DEBUG via NVM](https://gist.github.com/throwaway96/827ff726981cc2cbc46a22a2ad7337a1) - Works on all webOS versions prior to 4.0 (plus NetCast/GP) but requires opening up the TV (no permanent hardware modifications) - GetMeIn - May work on webOS up to 3.4 on certain models, but don't use the original binary from the XDA thread