This series of patches addresses eclasses using the "root" user name
to check for superuser privileges. Using UID or GID 0 will work in
more situations (e.g. when the superuser isn't named root).

Additionally, change string comparison to arithmetic comparision for
testing EUID. Introduce an additional sanity check preventing lockout
of the superuser in acct-user.eclass.

Bug: https://bugs.gentoo.org/595908

Haelwenn (lanodan) Monnier (1):
  fcaps.eclass: Use UID 0 instead of root

Ulrich Müller (8):
  cron.eclass: Use UID 0 instead of root
  qmail.eclass: Use UID 0 instead of root
  toolchain.eclass: Use UID 0 instead of root
  webapp.eclass: Use UID 0 instead of root
  fcaps.eclass: Use arithmetic test for UID
  user.eclass: Use arithmetic test for UID
  acct-user.eclass: Use arithmetic test for EUID
  acct-user.eclass: Refuse to lock out the superuser

 eclass/acct-user.eclass | 17 +++++++++++------
 eclass/cron.eclass      | 12 ++++++------
 eclass/fcaps.eclass     |  6 +++---
 eclass/qmail.eclass     | 12 ++++++------
 eclass/toolchain.eclass |  2 +-
 eclass/user.eclass      |  4 ++--
 eclass/webapp.eclass    |  4 ++--
 7 files changed, 31 insertions(+), 26 deletions(-)

-- 
2.35.1


Reply via email to