| Submitter | Yann E. MORIN |
|---|---|
| Date | Jan. 13, 2013, 10:50 p.m. |
| Message ID | <cover.1358117168.git.yann.morin.1998@free.fr> |
| Download | mbox |
| Permalink | /patch/211662/ |
| State | Changes Requested |
| Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7E7142C00FF for <incoming@patchwork.ozlabs.org>; Mon, 14 Jan 2013 09:50:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7C0831016C7; Sun, 13 Jan 2013 22:50:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cIXLMsYLIxIm; Sun, 13 Jan 2013 22:50:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7EF1F1002F2; Sun, 13 Jan 2013 22:50:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 48EA08F7A0 for <buildroot@lists.busybox.net>; Sun, 13 Jan 2013 22:50:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E2F5989FB4 for <buildroot@lists.busybox.net>; Sun, 13 Jan 2013 22:50:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 81c44JfVU+OL for <buildroot@lists.busybox.net>; Sun, 13 Jan 2013 22:50:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f193.google.com (mail-we0-f193.google.com [74.125.82.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id A018289DC5 for <buildroot@busybox.net>; Sun, 13 Jan 2013 22:50:12 +0000 (UTC) Received: by mail-we0-f193.google.com with SMTP id r1so976289wey.8 for <buildroot@busybox.net>; Sun, 13 Jan 2013 14:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=7IrxcORfTT6c5SXChtdCB1/yb1DoGvuGPLUak0Dr46I=; b=Q7M/uCGMu+thVzmc+PBbWBXwa9MJmAP64gx73qKjX4P2+QALI4ShAZcFVO/DDw5ShI PdRSi3J0d9QntbiS0r5iH8HSLruHzRCwcxhszV52r7WMm+dw16VrqvK8O9XQn7pYeFaV axdFq+ApUKBGoz5drvZSKJ9rprt4hh3OR1QAYoZHaGZwlaNiiPS/6V7FXuXSpWa0bra5 I1qi0SKIOXA4OX0JXwlc6zQtvjjjVAYT90tXvVkGYA/2COdUG1YfpOOv29QezpYLREe5 RQ2NDyhJEHSEnj/bCxb077QPuin5I30+eN0jARL5CZk8/YsSM1QklUNUrrGlo5y/KfVV 3Ylw== X-Received: by 10.194.172.228 with SMTP id bf4mr40487942wjc.38.1358117410634; Sun, 13 Jan 2013 14:50:10 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-33-7.w90-32.abo.wanadoo.fr. [90.32.16.7]) by mx.google.com with ESMTPS id ex6sm11255148wid.3.2013.01.13.14.50.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 13 Jan 2013 14:50:09 -0800 (PST) From: "Yann E. MORIN" <yann.morin.1998@free.fr> To: buildroot@busybox.net Date: Sun, 13 Jan 2013 23:50:03 +0100 Message-Id: <cover.1358117168.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Subject: [Buildroot] [pull request v4] Pull request for branch yem-package-create-user X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net |
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. 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 v3 -> v4: - use the configured password encryption scheme - some tweaks and typo-fixes to the documentation Changes v2 -> v3: - clarify password prefixes (Samuel) - move makeuser syntax doc to its own file (Samuel) - use awk instead of sed to parse /etc/passwd et al. (Cam, Thomas) - sanitise use of grep (Cam) - enhancements and fixes to makuser syntax doc (Cam) Changes v1 -> v2: - drop the gshadow patch (Thomas, Peter) - tvheadend user is now part of the video secondary group The following changes since commit 0bc0da0bb41dc3ae77913e6321bb0326f039a413: toolchain/crostool-ng: use newly-introduced BUILDROOT_CONFIG (2013-01-13 23:15:07 +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/appendix.txt | 1 + docs/manual/makeusers-syntax.txt | 87 +++++++ fs/common.mk | 5 +- package/pkg-generic.mk | 1 + package/tvheadend/etc.default.tvheadend | 5 +- package/tvheadend/tvheadend.mk | 10 +- support/scripts/mkusers | 371 +++++++++++++++++++++++++++++++ 8 files changed, 488 insertions(+), 8 deletions(-) create mode 100644 docs/manual/makeusers-syntax.txt create mode 100755 support/scripts/mkusers Regards, Yann E. MORIN