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

[Libguestfs] [PATCH 0/5] use augeas for /etc/shadow


currently /etc/shadow is edited manually when needed (i.e. when setting
the password for an user), and it is not changed when removing users.

Import the upstream shadow.aug (currently in their development serie,
but not part of any released version yet), and use it only when the
augeas version is less than a potential 1.2.1 (covering also the case
when the new version is just 1.3.0).

Pino Toscano (5):
  daemon: make aug_close cleanup available for all
  daemon: add a way to check for the version of augeas
  appliance: daemon: import and use upstream shadow lens
  sysprep: remove (now obsolete) comment about /etc/shadow lens
  customize: use augeas to change passwords

 appliance/Makefile.am                     |   3 +-
 appliance/guestfs_shadow.aug              |  72 ++++++++++++++++
 customize/password.ml                     |  64 +++++++-------
 daemon/augeas.c                           | 137 +++++++++++++++++++++++++++++-
 daemon/daemon.h                           |  19 ++++-
 daemon/guestfsd.c                         |  11 +++
 daemon/lvm-filter.c                       |  16 ----
 sysprep/sysprep_operation_user_account.ml |   4 -
 8 files changed, 268 insertions(+), 58 deletions(-)
 create mode 100644 appliance/guestfs_shadow.aug


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