[pull,request] Pull request for branch yem-package-create-user

Message ID cover.1357070939.git.yann.morin.1998@free.fr
State Not Applicable
Headers show


git://gitorious.org/buildroot/buildroot.git yem-package-create-user


Yann E. MORIN Jan. 1, 2013, 8:10 p.m.
Hello All!

Here is a series that allows packages to create users.

Packages that install daemons may well want to run those daemons as
non-root users to avoid security issues. Currently, there are two users
of choice to run 'generic' daemons: root or daemon (although there are
a few dedicated users to run a few services: mail, sshd, ftp...).

This series builds upon both the package infrastrucutre to define the
user(s) a package may want to create, and the filesystem infrastructure
to actually generate these users, and chown their ${HOME}s.

Documentation is updated accordingly.

Note: for now, users' passwords are md5-encrypted. Once the pending
change to introduce alternative password-encryption schemes is applied,
we can use that to encode users' passwords, too.

As a proof of concept, the package tvheadend has been updated to use
a dedicated user to run its daemon as (call me stubborn! ;-] ).

Changes v1 -. v2:
  - drop the gshadow patch (Thomas)
  - tvheadend user is now part of the video secondary group

The following changes since commit 560e7db37433fc82760f71557dbc3e495f05f909:

  efl/libecore: fix build with gcrypt (2013-01-01 15:34:40 +0100)

are available in the git repository at:
  git://gitorious.org/buildroot/buildroot.git yem-package-create-user

Yann E. MORIN (2):
      packages: add ability for packages to create users
      package/tvheadend: use a non-root user to run the daemon

 docs/manual/adding-packages-generic.txt |   16 ++-
 docs/manual/makedev-syntax.txt          |   65 ++++++
 fs/common.mk                            |    5 +-
 package/pkg-generic.mk                  |    1 +
 package/tvheadend/etc.default.tvheadend |    5 +-
 package/tvheadend/tvheadend.mk          |   10 +-
 support/scripts/mkusers                 |  348 +++++++++++++++++++++++++++++++
 7 files changed, 442 insertions(+), 8 deletions(-)
 create mode 100755 support/scripts/mkusers