lateautumn233 / Linuxdeploy-Pro

Install and run GNU/Linux on Android
GNU General Public License v3.0
199 stars 44 forks source link

setuid program导致OneUI6设备崩溃 #50

Closed mio-19 closed 7 months ago

mio-19 commented 7 months ago

Samsung S23 Ultra OneUI 6.1 Android14

ssh登入默认用户输入正确密码时设备卡死

ssh登入root用su/sudo切换到用户时正常

已修改id:uid=4000 gid=4000

已測試Arch及debian bookworm有這個問題

mio-19 commented 7 months ago

容器类型chroot和unshare都出现该问题。

mio-19 commented 7 months ago

Screenshot_20240404_182006 新建一个也会是卡死 卡在这个界面

mio-19 commented 7 months ago

alpine無此問題 大概又和glibc有什麼關係

mio-19 commented 7 months ago

用dropbear无问题,总结触发条件:openssh且glibc

mio-19 commented 7 months ago

ssh到非root用户执行sudo --help即可触发

mio-19 commented 7 months ago

这样也卡死(adb shell, magisk, su) (测试发行版:alpine)

dm3q:/ # mount -o remount,suid /data
dm3q:/ # mount|grep ' /data '
/dev/block/dm-58 on /data type f2fs (rw,lazytime,seclabel,nodev,noatime,background_gc=on,gc_merge,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,active_logs=6,reserve_root=32768,resuid=0,resgid=5678,usrquota,grpquota,whint_mode=fs-based,inlinecrypt,alloc_mode=default,checkpoint_merge,fsync_mode=nobarrier,compress_algorithm=lz4,compress_log_size=5,compress_mode=user,discard_unit=block,memory=normal)
dm3q:/ # chroot /data/local/arch /bin/sh --login
localhost:~# sudo -u user sudo --help
mio-19 commented 7 months ago

与Linuxdeploy无关