-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom fstab: cannot open file -> Permission denied in Magisk 28001 -> external SD Card not mounted -> new overlay.d process? #8457
Comments
A lot of magiskinit stuff changed from 27 to 28, but I didn't find anything specific to overlay.d. Can you provide dmesg when booting (need to check logs of magiskinit)? |
FWIW @aviraxp, just saw this... Seems some issues here (not sure how many) may be caused by patch creation producing corrupted magiskboot on some devices with 28001: May need to confirm, but may help... |
Thanks for looking into it. I figured they might be a change in the expected permissions of the file.
Thanks, in there it says:
This would mean, I should have issues with the recovery boot, because the Magisk App did all the patching and But it is the other way around. But I will check the magiskboot on my recovery partition If I can see that mentioned |
Dmesg is too late |
Yeah I noticed it too, as I was trying to gather it up to zero, I got a bootloop, again. |
Maybe it's caused by the more restricted sepolicy rule? b11b811 |
OK yeah, it is indeed caused by the more restricted sepolicy rule, as |
This comment was marked as resolved.
This comment was marked as resolved.
Nice, great find, thanks. Can I change something on the sepolicy rules myself, to test this "manually" ? |
Thank you for making this effort, very much appreciated.
A couple more things, just make this report more complete. I've tried to install the downloaded One last thing, do you know what this messages means? Or better, how I can get rid of it? Thanks |
To be sumed up: The file overlayed by overlay.d shares tmpfs label but not original label because if of bind mount, so I have to allow vold to access tmpfs file. That's not an ideal solution to allow all domains to access tmpfile (introduced security issues), so I am planning to clone xattr of target files before doing magic mount. |
Understood, sounds like plan. If you want me to do further tests in that matter, with pleasure. |
Nope, this one doesnt work with my custom fstab. The system boots yes, but the sdcard doesnt gets mounted. |
It seems selinux isn't initalized when overlay.d takes effect. I will try to find other ways. |
Device: Samsung S10 SM-G973F (beyond1)
Android version: 12
Magisk version name: Canary
Magisk version code: 28001 (070719d)
I am using Magisk 28001 within my custom kernel and a custom fstab file. With v27 everything worked great,
my external SD Card got mounted. But now with 28001 it doesn't. So far the rest of Magisks works.
It is just this custom fstab issue.
If I check the logs, I can see a message like:
vold : [libfs_mgr]ReadFstabFromFile(): cannot open file: '/vendor/etc/fstab.exynos9820': Permission denied
Permissions are:
As a backup function, I also installed the same Magisk Version into my recovery partition. And there is no custom fstab.
And If I boot from there, my external SD Card gets mounted.
The whole custom fstab thing worked well with v27.0.
Is there anything new to the overlay.d mounting process I am not aware of? Could need a little help or pointer
If I have to adjust my custom fstab and the way how I add it into my kernels ramdisk.
This is how I implement it via the initramfs_list:
This is how my fstab.exynos9820 looks like:
my .magisk file from kernel:
my .magisk file from recovery:
Thanks
logcat_kernelboot.log
magisk_kernelboot.log
logcat_recoveryboot.log
magisk_recoveryboot.log
fstab_init_magisk-configs.zip
The text was updated successfully, but these errors were encountered: