[libcxx-commits] [libcxx] [libc++][hardening] Classify assertions related to leaks and syscalls. (PR #77164)
    Will Hawkins via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Fri Jan  5 18:59:11 PST 2024
    
    
  
================
@@ -621,7 +621,7 @@ void __permissions(const path& p, perms prms, perm_options opts, error_code* ec)
     set_sym_perms  = is_symlink(st);
     if (m_ec)
       return err.report(m_ec);
-    _LIBCPP_ASSERT_UNCATEGORIZED(st.permissions() != perms::unknown, "Permissions unexpectedly unknown");
+    _LIBCPP_ASSERT_VALID_EXTERNAL_API_CALL(st.permissions() != perms::unknown, "Permissions unexpectedly unknown");
----------------
hawkinsw wrote:
It *seems* possible -- you could have SELinux enabled that allows the owner of the process to `read` the file but denies it `getattr`?
https://github.com/llvm/llvm-project/pull/77164
    
    
More information about the libcxx-commits
mailing list