[PATCH 0/3] Portability improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is a small batch of portability fixes. It removes calls to
the non-portable getpwent_r function, problems with hardened
toolchains defining FORTIFY_SOURCE and removes usage of
__BEGIN_DECLS. These patches are all aiming for compatibility
with musl on hardened Gentoo.

While I guess that the first two commits of removing
__BEGIN_DECLS and the patch for FORTIFY_SOURCE are
uncontroversial, I can imagine the removal of getpwent_r being a
bit more so due to the alternative being non-reentrant. But to
the best of my knowledge the code in question is not called in a
threaded context, so I actually doubt it matters much. Given that
I'm new to this code base I could very likely be wrong, though.

Patrick


Patrick Steinhardt (3):
  libsepol: replace non-standard use of __BEGIN_DECLS
  libselinux: fix error when FORTIFY_SOURCE is already set
  genhomedircon: avoid use of non-standard `getpwent_r`

 libselinux/src/Makefile                   |  3 ++-
 libselinux/utils/Makefile                 |  3 ++-
 libsemanage/src/genhomedircon.c           | 22 +++++-----------------
 libsepol/include/sepol/ibendport_record.h | 10 +++++++---
 libsepol/include/sepol/ibendports.h       | 11 ++++++++---
 libsepol/include/sepol/ibpkey_record.h    | 11 ++++++++---
 libsepol/include/sepol/ibpkeys.h          | 12 +++++++++---
 7 files changed, 41 insertions(+), 31 deletions(-)

-- 
2.13.1




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux