]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/blkidP.h
include/debug: don't print pointer address for SUID programs
authorKarel Zak <kzak@redhat.com>
Fri, 12 Jan 2018 10:01:26 +0000 (11:01 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Jan 2018 10:01:26 +0000 (11:01 +0100)
commit6d00cfb2330cb47d00d350eedfbffbbf5991a743
tree868f3ee9d066d0cf70339b0a693a4cda503a8dc1
parent9c76f85f9a9de1117bf6d89e8df7bdc664e25fa0
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>
include/Makemodule.am
include/debug.h
include/debugobj.h [new file with mode: 0644]
lib/loopdev.c
libblkid/src/blkidP.h
libfdisk/src/fdiskP.h
libmount/src/mountP.h
libsmartcols/src/smartcolsP.h
misc-utils/lsblk.c
misc-utils/whereis.c
sys-utils/lsns.c