Commit Graph

44 Commits

Author SHA1 Message Date
dependabot[bot] d84fe45a09 build(deps): bump zip from 1.1.4 to 1.2.1 in /userspace/ksud (#1708)
Bumps [zip](https://github.com/zip-rs/zip2) from 1.1.4 to 1.2.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/zip-rs/zip2/releases">zip's
releases</a>.</em></p>
<blockquote>
<h2>v1.2.1</h2>
<h3><!-- raw HTML omitted -->🐛 Bug Fixes</h3>
<ul>
<li>Prevent panic when trying to read a file with an unsupported
compression method</li>
<li>Prevent panic after reading an invalid LZMA file</li>
<li>Make <code>Stored</code> the default compression method if
<code>Deflated</code> isn't available, so that zip files are readable by
as much software as possible</li>
<li>version_needed was wrong when e.g. cfg(bzip2) but current file
wasn't bzip2 (<a
href="https://redirect.github.com/zip-rs/zip2/pull/100">#100</a>)</li>
<li>file paths shouldn't start with slashes (<a
href="https://redirect.github.com/zip-rs/zip2/pull/102">#102</a>)</li>
</ul>
<h3><!-- raw HTML omitted -->🚜 Refactor</h3>
<ul>
<li>Overhaul <code>impl Arbitrary for FileOptions</code></li>
<li>Remove unused <code>atomic</code> module</li>
</ul>
<h2>v1.2.0</h2>
<h3><!-- raw HTML omitted -->🚀 Features</h3>
<ul>
<li>Add method <code>decompressed_size()</code> so non-recursive ZIP
bombs can be detected</li>
</ul>
<h3><!-- raw HTML omitted -->🚜 Refactor</h3>
<ul>
<li>Make <code>ZipWriter::finish()</code> consume the
<code>ZipWriter</code></li>
</ul>
<h3><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h3>
<ul>
<li>Use panic! rather than abort to ensure the fuzz harness can process
the failure</li>
<li>Update fuzz_write to use replace_with</li>
<li>Remove a drop that can no longer be explicit</li>
<li>Add <code>#![allow(unexpected_cfgs)]</code> in nightly</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md">zip's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/zip-rs/zip2/compare/v1.2.0...v1.2.1">1.2.1</a>
- 2024-05-06</h2>
<h3><!-- raw HTML omitted -->🐛 Bug Fixes</h3>
<ul>
<li>Prevent panic when trying to read a file with an unsupported
compression method</li>
<li>Prevent panic after reading an invalid LZMA file</li>
<li>Make <code>Stored</code> the default compression method if
<code>Deflated</code> isn't available, so that zip files are readable by
as much software as possible</li>
<li>version_needed was wrong when e.g. cfg(bzip2) but current file
wasn't bzip2 (<a
href="https://redirect.github.com/zip-rs/zip2/pull/100">#100</a>)</li>
<li>file paths shouldn't start with slashes (<a
href="https://redirect.github.com/zip-rs/zip2/pull/102">#102</a>)</li>
</ul>
<h3><!-- raw HTML omitted -->🚜 Refactor</h3>
<ul>
<li>Overhaul <code>impl Arbitrary for FileOptions</code></li>
<li>Remove unused <code>atomic</code> module</li>
</ul>
<h2><a
href="https://github.com/zip-rs/zip2/compare/v1.1.4...v1.2.0">1.2.0</a>
- 2024-05-06</h2>
<h3><!-- raw HTML omitted -->🚀 Features</h3>
<ul>
<li>Add method <code>decompressed_size()</code> so non-recursive ZIP
bombs can be detected</li>
</ul>
<h3><!-- raw HTML omitted -->🚜 Refactor</h3>
<ul>
<li>Make <code>ZipWriter::finish()</code> consume the
<code>ZipWriter</code></li>
</ul>
<h3><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h3>
<ul>
<li>Use panic! rather than abort to ensure the fuzz harness can process
the failure</li>
<li>Update fuzz_write to use replace_with</li>
<li>Remove a drop that can no longer be explicit</li>
<li>Add <code>#![allow(unexpected_cfgs)]</code> in nightly</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/zip-rs/zip2/commit/b725303cce4fda36737da2c93d2228581bfd7632"><code>b725303</code></a>
Merge pull request <a
href="https://redirect.github.com/zip-rs/zip2/issues/103">#103</a> from
zip-rs/release-plz-2024-05-06T17-54-03Z</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/a1f239980ebf4e78e36f2e45a1e00705c77adb73"><code>a1f2399</code></a>
chore: release</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/f7ab2ae506f7c6be05a8f9362731397ddd2f2d1d"><code>f7ab2ae</code></a>
fix: Prevent panic when trying to read a file with an unsupported
compression...</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/7f46b77da208648e311a0739a253365b4930c6b1"><code>7f46b77</code></a>
ci: Upload leak reports if fuzz fails</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/d13031cc14738d2c4c0d75e43b039a0e06dcdf15"><code>d13031c</code></a>
fix: Prevent panic after reading an invalid LZMA file</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/8868a11d23976ea5d8d6e1a34e854164b2723d7a"><code>8868a11</code></a>
test(fuzz): Fix a fuzz-read bug when finishing LZMA</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/b277298d7fdddb68e7e2a9f287b49a40e7db35e1"><code>b277298</code></a>
test(fuzz): Fix: need to accept FileNotFound from abort</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/162c9b7281736fb96a17e8cad3b3bf0758384ca7"><code>162c9b7</code></a>
test(fuzz): Fix bugs that were breaking the fuzz test</li>
<li><a
href="https://github.com/zip-rs/zip2/commit/447f9c6e4f84801a859c78d3408b5b3e0738b0a5"><code>447f9c6</code></a>
refactor: Overhaul <code>impl Arbitrary for FileOptions</code></li>
<li><a
href="https://github.com/zip-rs/zip2/commit/845c3ec91f1beff559af8b5da19b5fc3fa332abc"><code>845c3ec</code></a>
refactor: Remove unused <code>atomic</code> module</li>
<li>Additional commits viewable in <a
href="https://github.com/zip-rs/zip2/compare/v1.1.4...v1.2.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=zip&package-manager=cargo&previous-version=1.1.4&new-version=1.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 11:10:42 +08:00
weishu 3854e291f5 ksud: bump zip dependency to 1.x 2024-05-02 12:04:28 +08:00
weishu 3bd67c654a ksud: use sha1 library to calc hash 2024-04-24 12:51:11 +08:00
Caner Karaca bdec5117ed Update (#1618) 2024-04-13 16:43:45 +08:00
Caner Karaca 5be6992d75 Add Dependabot, Update Dependencies and Workflows (#1440)
Build may fail because of some major dependency updates. Needs changes,
changes/fixes welcomed.

Main goal is keeping all things up-to-date.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-03-20 12:52:34 +08:00
weishu 8e1ba90c63 ksud: correctly copy chr device and keep xattr. close #1397 2024-02-29 19:23:11 +08:00
weishu 40d631a20c ksud: Force creating new module format to avoid many wired issues. close #1384, close #1381 2024-02-25 22:29:13 +08:00
weishu 36a5f61f43 ksud: remove http serve mode 2024-02-22 16:26:14 +08:00
weishu 102bde759c ksud: Add support for module webui 2024-02-20 16:39:05 +08:00
LoveSy 633e84307b Add fallback to mount syscall (#1349) 2024-02-05 17:36:07 +08:00
weishu d2567cc460 ksud: Fix dependency 2024-02-02 11:25:54 +08:00
LoveSy e21be26b06 Use rustix for prctl (#1333) 2024-02-01 23:28:56 +08:00
LoveSy 1f8be12d79 Use new mount api 2024-02-01 01:50:30 +08:00
LoveSy 9dd854a2f1 Use rustix to replace some unsafe calls 2024-02-01 00:35:51 +08:00
weishu 1ebedc15a7 ksud: use sparse image to avoiding resize image. close #1220 2024-01-29 18:50:19 +08:00
weishu 34d8ba78a6 ksud: Fix build for win 2024-01-16 11:39:21 +08:00
weishu dbf7f6786b ksud: Add support for boot patch 2024-01-15 20:17:10 +08:00
weishu 1a8dd01a97 ksud: bump dependencies 2023-11-02 12:05:21 +08:00
weishu 02def78124 kernel: harden the signature check (#1027) 2023-10-11 02:53:11 -05:00
weishu 93b77b766e ksud: re-enable lto 2023-07-28 22:23:03 +08:00
weishu bedc54c03f ksud: fix su args parse error. close #736 2023-07-28 22:21:12 +08:00
tiann db186e7c42 ksud: remove unused dependency 2023-04-17 18:19:18 +08:00
tiann bff61c671a ksud: avoid using master commit dependency 2023-04-17 11:37:54 +08:00
tiann e808bed680 ksud: refine su and make it compitable with MagiskSU
Supported features:

1.  --mount-master, -M, -mm which would make the command run in global mount namespace.
2. - user to switch a specific user's shell.
3. -v, -V to print version code and name.

fix #330 #306 #305 #32
2023-04-04 13:50:48 +08:00
tiann 36e40746e6 ksud: Disable modules when magisk installed 2023-03-01 11:41:53 +08:00
tiann b8b9f6ec75 ksud: Fix windows compile 2023-02-21 21:39:14 +08:00
tiann 1fd381af13 ksud: restore stock mount after overlay mount. close #233 2023-02-21 20:22:00 +08:00
tiann afdb21755f ksud: Fix denpendency 2023-02-20 10:07:30 +08:00
tiann 06be27db98 ksud: Fix mount ext4 failed of sys-mount 2023-02-12 18:07:50 +08:00
tiann f2647c6469 ksud: Fix confliction with stock system overlayfs 2023-02-08 12:14:31 +08:00
tiann a8e85f65eb ksud: Fix incorrect dependency 2023-02-03 23:19:22 +08:00
tiann 94462f8521 ksud: Fix macOS compile 2023-02-03 14:46:48 +08:00
skbeh 9e34996c3b ksud: fix issues found by clippy (#167)
These issues are mostly found by `cargo clippy -- -W clippy::pedantic`.
2023-02-03 09:45:07 +08:00
skbeh 5088703ec3 ksud: compress embed assets (#186) 2023-02-03 09:31:32 +08:00
tiann 4c8681d52c ksud: use logcat log 2023-02-01 20:28:38 +08:00
tiann 9d192d5f2b ksud: make it compilable for non-android 2023-02-01 19:04:33 +08:00
tiann 4852beec79 ksud: sepolicy support 2023-01-31 18:47:43 +08:00
skbeh c19e8bef73 ksud: remove subprocess dependency (#156) 2023-01-30 20:14:27 +08:00
skbeh 783093384a ksud: replace some utils with rust libraries (#142) 2023-01-30 12:57:25 +08:00
Ylarod 443c5867cd kernel: precise trigger timing of post-fs-data (#118)
* kernel: add report_event cmd

* ksud: report event

* kernel: trigger on_post_fs_data

* ksud: comment unused code

* [skip ci] run clang-format

Signed-off-by: Ylarod <me@ylarod.cn>

* ci: use custom key to sign official bootimgs

* format ksud

* reject non root

* remove

Signed-off-by: Ylarod <me@ylarod.cn>
2023-01-26 11:29:02 +08:00
tiann 59a35c0140 ksud: auto resize image based on module size 2023-01-24 15:00:31 +08:00
tiann 5b9b620bc0 ksud: retry for mount 2023-01-24 13:26:40 +08:00
tiann 7802618833 ksud: fix encoding error 2023-01-04 17:26:21 +08:00
tiann fad6ff3dce ksud: Add userspace cli to load module 2023-01-04 14:42:47 +08:00