V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abcdxe2v
V2EX  ›  小米

小米手机,使用 ls -l 命令,(su root 后看到)同样的权限的文件,有的文件的权限、所有者为问号?,有的却能显示,是什么原因?

  •  
  •   abcdxe2v · Feb 13, 2024 · 2125 views
    This topic created in 814 days ago, the information mentioned may be changed or developed.
    https://imgur.com/a/VJylvSU
    上图为 su 后的 root 用户,下图为 su 前的 adb shell 用户
    5 replies    2024-02-13 11:17:24 +08:00
    N0body
        1
    N0body  
       Feb 13, 2024
    可以把原问题贴给 gpt 问问看,我这里就不贴回答了,这里好像不让贴
    abcdxe2v
        2
    abcdxe2v  
    OP
       Feb 13, 2024
    @N0body 我问了下 gpt ,回答应该不对
    ysc3839
        3
    ysc3839  
       Feb 13, 2024 via Android   ❤️ 1
    ACL 或者 SELinux 禁止访问了吧
    abcdxe2v
        5
    abcdxe2v  
    OP
       Feb 13, 2024
    @ysc3839 感谢,我研究了一下 selinux 发现可能就是 selinux 的原因
    02-13 10:35:05.665 25603 25603 W stat : type=1400 audit(0.0:1854800): avc: denied { getattr } for path="/system/xbin/qadaemon" dev="dm-4" ino=6313 scontext=u:r:shell:s0 tcontext=u:object_r:qadaemon_exec:s0 tclass=file permissive=0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1465 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:52 · PVG 00:52 · LAX 09:52 · JFK 12:52
    ♥ Do have faith in what you're doing.