Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703016 - net-misc/openssh : support GLEP 81 user creation
Summary: net-misc/openssh : support GLEP 81 user creation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: glep-81
  Show dependency tree
 
Reported: 2019-12-15 17:39 UTC by David Michael
Modified: 2020-06-02 14:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GLEP 81 for openssh (openssh.patch,976 bytes, patch)
2019-12-15 17:40 UTC, David Michael
Details | Diff
acct-group/sshd (sshd-0.ebuild,145 bytes, text/plain)
2019-12-15 17:41 UTC, David Michael
Details
acct-user/sshd (sshd-0.ebuild,246 bytes, text/plain)
2019-12-15 17:41 UTC, David Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2019-12-15 17:39:04 UTC
This is an enhancement request to add RDEPEND="acct-user/sshd" to create the sshd user instead of user.eclass.  Standardizing on these account packages allows for easier management (#702624).  I'll attach a patch and ebuilds.

Reproducible: Always




It looks like net-misc/dropbear is another package that creates the sshd user, so it can share this runtime dependency.  I can open a separate bug for that if this change is accepted.
Comment 1 David Michael 2019-12-15 17:40:25 UTC
Created attachment 599666 [details, diff]
GLEP 81 for openssh

Drop user.eclass in favor of RDEPEND="acct-user/sshd".
Comment 2 David Michael 2019-12-15 17:41:10 UTC
Created attachment 599668 [details]
acct-group/sshd

Create the sshd group.
Comment 3 David Michael 2019-12-15 17:41:55 UTC
Created attachment 599670 [details]
acct-user/sshd

Create the sshd user and home directory.
Comment 4 David Michael 2020-01-31 17:32:04 UTC
Is there anything blocking this?
Comment 5 Larry the Git Cow gentoo-dev 2020-02-05 01:55:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fecc27cb2f862b62e359ccc416777828bac7cc5

commit 4fecc27cb2f862b62e359ccc416777828bac7cc5
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-02-05 01:48:30 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-02-05 01:54:52 +0000

    net-misc/openssh-8.0_p1-r4: fix tests in 2020, move to GLEP 81
    
    Bug: https://bugs.gentoo.org/703016
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 net-misc/openssh/openssh-8.0_p1-r4.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aac6323197fdf15ee5d8ace28d31883a2099c9b

commit 1aac6323197fdf15ee5d8ace28d31883a2099c9b
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-02-05 01:44:55 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-02-05 01:53:58 +0000

    net-misc/openssh-8.1_p1-r2: revbump, patch for glibc-2.31, HPN 14.20
    
    Bug: https://bugs.gentoo.org/703016
    Closes: https://bugs.gentoo.org/708224
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 net-misc/openssh/Manifest                          |   4 +
 .../files/openssh-8.0_p1-hpn-14.20-X509-glue.patch | 111 +++++
 .../files/openssh-8.1_p1-hpn-14.20-glue.patch      | 105 +++++
 .../files/openssh-8.1_p1-hpn-14.20-sctp-glue.patch |  19 +
 .../openssh/files/openssh-8.1_p1-tests-2020.patch  |  26 ++
 net-misc/openssh/openssh-8.1_p1-r2.ebuild          | 467 +++++++++++++++++++++
 6 files changed, 732 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5598093b3569149c4eaaf59037f4c38da4f07a1b

commit 5598093b3569149c4eaaf59037f4c38da4f07a1b
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-02-05 01:42:15 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-02-05 01:53:36 +0000

    acct-user/sshd-0: Add sshd user
    
    Bug: https://bugs.gentoo.org/703016
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    RepoMan-Options: --force
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 acct-user/sshd/metadata.xml  |  8 ++++++++
 acct-user/sshd/sshd-0.ebuild | 15 +++++++++++++++
 2 files changed, 23 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406211980a0e5d38a1ad003d315de6abad4b82b2

commit 406211980a0e5d38a1ad003d315de6abad4b82b2
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-02-05 01:38:37 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-02-05 01:53:14 +0000

    acct-group/sshd-0: Add sshd group
    
    Bug: https://bugs.gentoo.org/703016
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    RepoMan-Options: --force
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 acct-group/sshd/metadata.xml  | 8 ++++++++
 acct-group/sshd/sshd-0.ebuild | 8 ++++++++
 2 files changed, 16 insertions(+)
Comment 6 Patrick McLean gentoo-dev 2020-02-05 01:56:55 UTC
We will close this bug after older versions of openssh are removed from the tree.
Comment 7 David Michael 2020-06-02 14:23:37 UTC
It looks like all openssh ebuilds are using acct-*/sshd dependencies now.