| Submitter | Yann E. MORIN |
|---|---|
| Date | Feb. 5, 2013, 2:54 p.m. |
| Message ID | <cover.1360075956.git.yann.morin.1998@free.fr> |
| Download | mbox |
| Permalink | /patch/218267/ |
| 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 F133F2C02C7 for <incoming@patchwork.ozlabs.org>; Wed, 6 Feb 2013 01:54:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 693ADFFC66; Tue, 5 Feb 2013 14:54:22 +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 FYGosnq6FjIA; Tue, 5 Feb 2013 14:54:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C26BB1000A5; Tue, 5 Feb 2013 14:54:17 +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 6A15C8F783 for <buildroot@lists.busybox.net>; Tue, 5 Feb 2013 14:54:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C44F5897A8 for <buildroot@lists.busybox.net>; Tue, 5 Feb 2013 14:54:28 +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 j07ELEBv6vDt for <buildroot@lists.busybox.net>; Tue, 5 Feb 2013 14:54:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id C6E6485CE2 for <buildroot@busybox.net>; Tue, 5 Feb 2013 14:54:26 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id dq12so192022wgb.0 for <buildroot@busybox.net>; Tue, 05 Feb 2013 06:54:25 -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=zblb7x1wyFEfDvJFpibiv0CmByks325lYNFdwv1nBPk=; b=zVlrk6uVglZJzHNzX7pZoYLUeg5N7ESjlZlXNsQou6Q+o0hhlcDO8kiGp89Zl6Plwi M8grU69crdfD6KkjnMJvW27Q2wm4lWR63grXD5j2pzX0ydAyFyd+pjMeQ1BdXVW9fnZD bR5rX+iPQ8Cz3Lp43e7K2Ar/D0APKlLuuD8Y74FLYgpIYLEiPOcgq+QlnwS38P7PR47R JrfXbr3urp7Eo+WTMVwqBriFNteA5Um6XKBkd6wgW3w3xoK1Dzlp2xx1YQY2ufUE3D8x NH0vp5sY4H9C2LYWAReSPRaqoViCLj39uKWNZrT0l8EhF6OYicTnaAhjfiN6nT8RdwVv rZJQ== X-Received: by 10.194.94.37 with SMTP id cz5mr43068559wjb.49.1360076065334; Tue, 05 Feb 2013 06:54:25 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-68-181.w90-32.abo.wanadoo.fr. [90.32.147.181]) by mx.google.com with ESMTPS id ge2sm7429159wib.4.2013.02.05.06.54.23 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Feb 2013 06:54:24 -0800 (PST) From: "Yann E. MORIN" <yann.morin.1998@free.fr> To: buildroot@busybox.net Date: Tue, 5 Feb 2013 15:54:18 +0100 Message-Id: <cover.1360075956.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 v5] 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 v4 -> v5: - rebased ontop master after Developer's Day comments and upstreaming 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 b93bc6ebdcbae89547dc89dbce4701ea8037e02b: samba: security bump to version 3.6.12 (2013-02-05 12:23:01 +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 | 3 + package/pkg-generic.mk | 1 + package/tvheadend/etc.default.tvheadend | 5 +- package/tvheadend/tvheadend.mk | 10 +- support/scripts/mkusers | 371 +++++++++++++++++++++++++++++++ 8 files changed, 487 insertions(+), 7 deletions(-) create mode 100644 docs/manual/makeusers-syntax.txt create mode 100755 support/scripts/mkusers Regards, Yann E. MORIN