|
From: <sv...@va...> - 2015-02-09 13:27:14
|
Author: mjw
Date: Mon Feb 9 13:27:07 2015
New Revision: 14922
Log:
Bug #343967 Don't warn about setuid/setgid/setcap exec for dirs.
Modified:
trunk/NEWS
trunk/coregrind/m_libcfile.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Mon Feb 9 13:27:07 2015
@@ -91,6 +91,7 @@
343733 Unhandled syscall 187 (msgctl and related) on aarch64
343802 s390x: Fix false positives "conditional jump or move depends on
unitialised value(s)"
+343967 Don't warn about setuid/setgid/setcap executable for directories
n-i-bz Provide implementations of certain compiler builtins to support
compilers who may not provide those
n-i-bz Old STABS code is still being compiled, but never used. Remove it.
Modified: trunk/coregrind/m_libcfile.c
==============================================================================
--- trunk/coregrind/m_libcfile.c (original)
+++ trunk/coregrind/m_libcfile.c Mon Feb 9 13:27:07 2015
@@ -628,6 +628,10 @@
return sr_Err(res);
}
+ if ( VKI_S_ISDIR (st.mode) ) {
+ return VKI_EACCES;
+ }
+
if ( (st.mode & (VKI_S_ISUID | VKI_S_ISGID)) && !allow_setuid ) {
if (is_setuid)
*is_setuid = True;
|