From 6d00cfb2330cb47d00d350eedfbffbbf5991a743 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Jan 2018 11:01:26 +0100 Subject: include/debug: don't print pointer address for SUID programs * introduce new flag __UL_DEBUG_FL_NOADDR to suppress pointer address printing * use __UL_DEBUG_FL_NOADDR when SUID * move ul_debugobj() to debugobj.h, and require UL_DEBUG_CURRENT_MASK to provide access to the current mask from ul_debugobj(). It's better than modify all ul_debugobj() calls and use the global mask as argument. * remove never used UL_DEBUG_DEFINE_FLAG Reported-by: halfdog Signed-off-by: Karel Zak --- libsmartcols/src/smartcolsP.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libsmartcols') diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index b3b54cddd..510e7a980 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -36,6 +36,9 @@ UL_DEBUG_DECLARE_MASK(libsmartcols); #define ON_DBG(m, x) __UL_DBG_CALL(libsmartcols, SCOLS_DEBUG_, m, x) #define DBG_FLUSH __UL_DBG_FLUSH(libsmartcols, SCOLS_DEBUG_) +#define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(libsmartcols) +#include "debugobj.h" + /* * Generic iterator */ -- cgit v1.2.3-55-g7522