]> Savannah Git Hosting - gnulib.git/commit
file-has-acl: symlinks can have scontext
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 22:52:05 +0000 (14:52 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Nov 2024 00:34:57 +0000 (16:34 -0800)
commit74b6a2a7386cf8586c1244297d4d87dde123db42
treee45b94dc4ce8020550cc387c828371cf9abc6f8e
parent3133782711c84696b4bc8d6bda355a22f14cc05a
file-has-acl: symlinks can have scontext

Problem reported by Pádraig Brady <https://bugs.gnu.org/73418#35>.
* lib/file-has-acl.c (file_has_aclinfo):
With SELinux, symbolic links can have security contexts,
so omit incorrect optimizations assuming that they lack them.
When ! (flags & AC_SYMLINK_FOLLOW), prefer acl_get_link_np to
acl_get_file on platforms that have both APIs,
as this can avoid some races.
ChangeLog
lib/file-has-acl.c