diff options
| author | Karel Zak <kzak@redhat.com> | 2018-01-12 11:01:26 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2018-01-12 11:01:26 +0100 |
| commit | 6d00cfb2330cb47d00d350eedfbffbbf5991a743 (patch) | |
| tree | 868f3ee9d066d0cf70339b0a693a4cda503a8dc1 /misc-utils/lsblk.c | |
| parent | 9c76f85f9a9de1117bf6d89e8df7bdc664e25fa0 (diff) | |
| download | util-linux-6d00cfb2330cb47d00d350eedfbffbbf5991a743.tar.gz | |
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 'misc-utils/lsblk.c')
| -rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 9d3460b43c..9e9f3cf815 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -75,6 +75,8 @@ UL_DEBUG_DEFINE_MASKNAMES(lsblk) = UL_DEBUG_EMPTY_MASKNAMES; #define DBG(m, x) __UL_DBG(lsblk, LSBLK_DEBUG_, m, x) #define ON_DBG(m, x) __UL_DBG_CALL(lsblk, LSBLK_DEBUG_, m, x) +#define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(lsblk) +#include "debugobj.h" #define LSBLK_EXIT_SOMEOK 64 #define LSBLK_EXIT_ALLFAILED 32 |
