Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305455 - net-misc/openssh: integrate sftpfilecontrol patches
Summary: net-misc/openssh: integrate sftpfilecontrol patches
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sftpfilecontrol.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-16 23:39 UTC by Dennis Jenkins
Modified: 2010-03-08 15:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Jenkins 2010-02-16 23:39:12 UTC
Disclaimer:  I am NOT the author of the patch mentioned in this feature request.  I need its features and run a Gentoo shop.  I can manually apply the patch and survive, but would really appreciate having it part of the normal ebuild.  I really try to avoid manually patching packages or installing software components not tracked by the default OS package tracking system (in this case, portage).

The patch adds additional options to sshd via the /etc/ssh/sshd_config file.  These options allow the system to force a specific umask on files created via ssh upload, overriding the umask specified (or omitted in my case) by the ssh client.

At this time the latest "openssh" for Gentoo Linux is "openssh-5.3_p1-r1" (2009-10-11).  The patch is for openssh-5.3p1, 2010-01-29.

What can I do to help the process (of getting this patch integrated into an ebuild)?

http://sftpfilecontrol.sourceforge.net/

http://sftpfilecontrol.sourceforge.net/download/v1.3/openssh-5.3p1.sftpfilecontrol-v1.3.patch
Comment 1 SpanKY gentoo-dev 2010-02-18 09:16:07 UTC
we dont really take patches for openssh anymore as there are too many conflicting ones as it is, but this one seems to be pretty small

if it's kept up-to-date and it applies conflict free with a combo of the other USE flags currently in the ebuild, i'm OK with adding it

so test it to see what (if any) conflicts there are
Comment 2 SpanKY gentoo-dev 2010-02-18 09:25:41 UTC
oh, and upstream keeps up-to-date.  i'm not maintaining patches anymore for people.  if upstream falls behind, then the patch gets dropped.
Comment 3 Dennis Jenkins 2010-02-18 13:54:26 UTC
(In reply to comment #2)
> oh, and upstream keeps up-to-date.  i'm not maintaining patches anymore for
> people.  if upstream falls behind, then the patch gets dropped.
> 

Should I pursue the openssh team directly?  This patch has been around for a few years and they haven't accepted it yet.  I can certainly ask them though.  Now that I think of it, I should have asked them first.  I apologize for taking up your time.

If the openssh team won't integrate this patch into their main-line, are you still willing to try it as a Gentoo patch against the ebuild (including the limitations that you mentioned about dropping it if it conflicts)?

I very much appreciate your time.  Thank you for reviewing the patch.
Comment 4 SpanKY gentoo-dev 2010-02-18 13:58:08 UTC
getting patches merged with upstream openssh is always the preferred route
Comment 5 Dennis Jenkins 2010-02-18 14:00:09 UTC
Ok.  I'll see what I can do.  Should we close this ticket for now?  If we close it and the openssh team won't integrate the patch, should I re-open this ticket, or open a new one?
Comment 6 SpanKY gentoo-dev 2010-02-18 14:09:19 UTC
you can open a tracker item in the openssh bugzilla and post the URL here.  based on their response, we can decide the next step to take wrt Gentoo.
Comment 7 Dennis Jenkins 2010-02-23 17:47:03 UTC
(In reply to comment #6)
> you can open a tracker item in the openssh bugzilla and post the URL here. 
> based on their response, we can decide the next step to take wrt Gentoo.
> 

I have been unsuccessful in contacting the patch's author, Michael Martinez.  I had intended to ask his permission to request that openssh directly integrate his patch.  So at this point I've decided to move forward and I posted the following feature request just a few minutes ago:

https://bugzilla.mindrot.org/show_bug.cgi?id=1715
Comment 8 Dennis Jenkins 2010-02-23 19:27:23 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > you can open a tracker item in the openssh bugzilla and post the URL here. 
> > based on their response, we can decide the next step to take wrt Gentoo.
> > 
> 
> I have been unsuccessful in contacting the patch's author, Michael Martinez.  I
> had intended to ask his permission to request that openssh directly integrate
> his patch.  So at this point I've decided to move forward and I posted the
> following feature request just a few minutes ago:
> 
> https://bugzilla.mindrot.org/show_bug.cgi?id=1715
> 

The openssh team closed the ticket as a duplicate of their ticket #1229.  They have addressed my need in their development of openssh-5.4.  However, there are no source tarballs for this packet yet (that I can find anyway).  I have spent a bit of time (unsuccessfully) searching for any information about when openssh 5.4 will be available.

In the mean time, can you please consider integrating the openssh team's patch [1] or [2] directly into Gentoo?  This patch is not the same as Martinez's patch, but would satisfy my need.

I also researched modifying "start-stop-daemon" to set the umask via a command line option.  However that would be moot, as "sshd.c" resets umask to 0022.

Again, thank you for your time.


[1] https://bugzilla.mindrot.org/attachment.cgi?id=1673&action=edit

[2] http://marc.info/?l=openssh-unix-dev&m=123147372931220&w=2
Comment 9 SpanKY gentoo-dev 2010-03-06 23:02:26 UTC
does said patch apply cleanly to openssh-5.3 ?  if so, i dont have a problem adding it since it came from upstream.
Comment 10 Dennis Jenkins 2010-03-08 15:18:21 UTC
Neither patch cited in my previous ticket update (comment #8) applies cleanly against openssh-5.3-p1 (the most recent version in net-misc/openssh).

The patch from my original request applies cleanly, but its functionality (at least the part that I need) will be superseded by a formal functionality in openssh 5.4.

However, I think that I can close this request.  I found the source to openssh 5.4 and tested a manual install of it.  Since this package will only be installed on one server I am willing to manage it manually until 5.4 is formally available via portage.

Since 5.4 will include the requested umask support and I have a work-around, I will close this ticket.  Since my original request was to integrate a non-main-line patch, I assume that we should close this ticket as "WONTFIX".  I'm not sure if UPSTREAM is more appropriate though.


I wish to thank you for your time researching this with me.  I really do appreciate it.