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 <me@halfdog.net> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
9c76f85f9a
commit
6d00cfb233
11 changed files with 57 additions and 16 deletions
|
@ -66,6 +66,9 @@ UL_DEBUG_DEFINE_MASKNAMES(lsns) = UL_DEBUG_EMPTY_MASKNAMES;
|
|||
#define DBG(m, x) __UL_DBG(lsns, LSNS_DEBUG_, m, x)
|
||||
#define ON_DBG(m, x) __UL_DBG_CALL(lsns, LSNS_DEBUG_, m, x)
|
||||
|
||||
#define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(lsns)
|
||||
#include "debugobj.h"
|
||||
|
||||
static struct idcache *uid_cache = NULL;
|
||||
|
||||
/* column IDs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue