Bind mounts on overlayfs in Magisk require access to the lower layer. By default (unless override_creds=off is set), overlayfs checks if the mounter (typically init) can access files in the lower layer. If access is denied, the operation fails. On some devices, due to inaccurate OEM SELinux policies, files under /product/bin might be inaccessible to init, resulting in bind mount failures in that directory. Crucially, the Rust rewrite in Magisk immediately returns these failures instead of silently ignoring them as in previous versions. This change, while improving transparency, brought to light an issue reported in https://github.com/topjohnwu/Magisk/issues/9139.
This article is created by nurl and is licensed under the Creative Commons Attribution 4.0 International License.
All articles on this site, unless otherwise specified as reprints or sources, are either original works or translations by this site. Please ensure proper attribution before reprinting.