summaryrefslogtreecommitdiffstats
path: root/sys-utils/lsns.c
diff options
context:
space:
mode:
authorKarel Zak2018-01-12 11:01:26 +0100
committerKarel Zak2018-01-12 11:01:26 +0100
commit6d00cfb2330cb47d00d350eedfbffbbf5991a743 (patch)
tree868f3ee9d066d0cf70339b0a693a4cda503a8dc1 /sys-utils/lsns.c
parentlibfdisk: allow to start freespace for zero (diff)
downloadkernel-qcow2-util-linux-6d00cfb2330cb47d00d350eedfbffbbf5991a743.tar.gz
kernel-qcow2-util-linux-6d00cfb2330cb47d00d350eedfbffbbf5991a743.tar.xz
kernel-qcow2-util-linux-6d00cfb2330cb47d00d350eedfbffbbf5991a743.zip
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>
Diffstat (limited to 'sys-utils/lsns.c')
-rw-r--r--sys-utils/lsns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/lsns.c b/sys-utils/lsns.c
index a9437aacb..4a39f66ef 100644
--- a/sys-utils/lsns.c
+++ b/sys-utils/lsns.c
@@ -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 */