Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219254 - app-admin/webmin-1.441 version bump
Summary: app-admin/webmin-1.441 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 225849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-25 10:51 UTC by Christian Ruppert (idl0r)
Modified: 2009-09-16 13:46 UTC (History)
3 users (show)

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


Attachments
ebuild patch (webmin-1.410.patch,888 bytes, patch)
2008-04-25 10:51 UTC, Christian Ruppert (idl0r)
Details | Diff
ldap-useradmin patch (webmin-1.410-ldap-useradmin.patch,469 bytes, patch)
2008-04-25 10:52 UTC, Christian Ruppert (idl0r)
Details | Diff
virtual-server patch (virtual-server-3.56-nocgibin.patch,499 bytes, patch)
2008-04-25 10:53 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.430.ebuild.patch (webmin-1.430.diff,290 bytes, patch)
2008-08-20 07:43 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server (webmin-1.430-r1.ebuild.patch,1.02 KB, patch)
2008-09-02 21:18 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.430.ebuild.patch (webmin-1.430.ebuild.patch,1.04 KB, patch)
2008-09-02 22:39 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server (webmin-1.430-r1.ebuild.patch,1.32 KB, patch)
2008-09-02 22:40 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-gentoo-configs.patch (webmin-gentoo-configs.patch,2.04 KB, patch)
2008-09-24 21:14 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server (webmin-1.430-r1.ebuild.patch,1.60 KB, patch)
2008-09-24 21:16 UTC, Christian Ruppert (idl0r)
Details | Diff
webmin-1.440.ebuild (without virtual-server) (webmin-1.440.ebuild,3.08 KB, text/plain)
2008-10-28 18:40 UTC, Christian Ruppert (idl0r)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ruppert (idl0r) gentoo-dev 2008-04-25 10:51:19 UTC
webmin 1.410 is out.
here are 3 patches for that.
the only problem is there are access violations maybe anybody else can help to fix that.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2008-04-25 10:51:55 UTC
Created attachment 150921 [details, diff]
ebuild patch
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2008-04-25 10:52:49 UTC
Created attachment 150923 [details, diff]
ldap-useradmin patch
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2008-04-25 10:53:10 UTC
Created attachment 150924 [details, diff]
virtual-server patch
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2008-06-11 13:49:03 UTC
*** Bug 225849 has been marked as a duplicate of this bug. ***
Comment 5 Steve Dibb (RETIRED) gentoo-dev 2008-06-11 13:49:29 UTC
1.420 now available
Comment 6 Christian Ruppert (idl0r) gentoo-dev 2008-06-11 13:55:13 UTC
the patches should work with 1.420.
but the problem is as before the access violations.
Comment 7 Steve Dibb (RETIRED) gentoo-dev 2008-06-11 14:33:33 UTC
(In reply to comment #6)
> the patches should work with 1.420.
> but the problem is as before the access violations.
> 

Thanks Christian for the note.  Still haven't had time to check them out.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-29 17:36:57 UTC
(In reply to comment #6)
> the patches should work with 1.420.
> but the problem is as before the access violations.
> 

Do you get: 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-29791.log"

rename:    /etc/ssh/sshd_config.webmintmp.30530
unlink:    /etc/ssh/sshd_config.webmintmp.30530
--------------------------------------------------------------------------------

I can't seem to see where this file is coming from. The build system is rather weird. IF you get than same msg I can put a check for that in the ebuild and die on detection. Best I can think of for now. Let me know.
Comment 9 Christian Ruppert (idl0r) gentoo-dev 2008-06-29 18:54:22 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > the patches should work with 1.420.
> > but the problem is as before the access violations.
> > 
> 
> Do you get: 
> --------------------------- ACCESS VIOLATION SUMMARY
> ---------------------------
> LOG FILE = "/var/log/sandbox/sandbox-29791.log"
> 
> rename:    /etc/ssh/sshd_config.webmintmp.30530
> unlink:    /etc/ssh/sshd_config.webmintmp.30530
> --------------------------------------------------------------------------------
> 
> I can't seem to see where this file is coming from. The build system is rather
> weird. IF you get than same msg I can put a check for that in the ebuild and
> die on detection. Best I can think of for now. Let me know.
> 

i get:
open_wr:   /etc/passwd.lock
open_wr:   /etc/group.lock
open_wr:   /etc/shadow.lock
open_wr:   /etc/passwd.lock
open_wr:   /etc/group.lock
open_wr:   /etc/shadow.lock
open_wr:   /etc/group.webmintmp.26779
open_wr:   /etc/group
Comment 10 Barry Gear 2008-07-08 05:10:29 UTC
I had no sandbox violations on AMD64 with 1.420 and the older vmin (3.23). Once I upped the version to 3.56 or 3.59 I got:


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-13639.log"

open_wr:   /etc/ssh/sshd_config.webmintmp.14384
open_wr:   /etc/ssh/sshd_config
--------------------------------------------------------------------------------
Comment 11 Barry Gear 2008-07-08 06:07:28 UTC
Well. I seemed to have fixed it for me by messing with the perl in the sshd/sshd-lib.pl file. I created a patch:

-open(CONF, $config{'sshd_config'});
+open(CONF, $config{'sshd_config'},O_RDONLY);

and it got past the sandbox violation. But the Miniserv doesnt like that, so I added:
sed -i -e "s:,O_RDONLY::g" "/usr/libexec/webmin/sshd/sshd-lib.pl"
during the pkg_postinst() to remove it.

I didn't upload the patches because I'm not sure if thats a proper solution or not but it seems to work for me.
Comment 12 Christian Ruppert (idl0r) gentoo-dev 2008-08-20 07:43:24 UTC
webmin 1.430 is out.
Comment 13 Christian Ruppert (idl0r) gentoo-dev 2008-08-20 07:43:59 UTC
Created attachment 163367 [details, diff]
webmin-1.430.ebuild.patch
Comment 14 Oliver Knodel 2008-09-01 21:35:52 UTC
getting access violation after applying the patches (~x86):

  * Applying virtual-server-3.23-pgsql.patch ...                                                                                                                                                                                                          [ ok ]
 * Applying webmin-1.170-setup-nocheck.patch ...                                                                                                                                                                                                         [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-admin/webmin-1.430/work/webmin-1.430 ...
>>> Source compiled.
>>> Test phase [not enabled]: app-admin/webmin-1.430

>>> Install webmin-1.430 into /var/tmp/portage/app-admin/webmin-1.430/image/ category app-admin
>>> Completed installing webmin-1.430 into /var/tmp/portage/app-admin/webmin-1.430/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-5557.log"

unlink:    /etc/passwd.lock
unlink:    /etc/group.lock
unlink:    /etc/shadow.lock
unlink:    /etc/passwd.lock
unlink:    /etc/group.lock
unlink:    /etc/shadow.lock
unlink:    /etc/passwd.lock
unlink:    /etc/group.lock
unlink:    /etc/shadow.lock
unlink:    /etc/passwd.lock
unlink:    /etc/group.lock
unlink:    /etc/shadow.lock
--------------------------------------------------------------------------------
I didn't try #11, because he doesn't get an answer if this is an appropriate solution.
Comment 15 Christian Ruppert (idl0r) gentoo-dev 2008-09-01 21:49:46 UTC
(In reply to comment #14)
> getting access violation after applying the patches (~x86):
> 
>   * Applying virtual-server-3.23-pgsql.patch ...                               
>                                                                                
>                                                                                
>           [ ok ]
>  * Applying webmin-1.170-setup-nocheck.patch ...                               
>                                                                                
>                                                                                
>          [ ok ]
> >>> Source unpacked.
> >>> Compiling source in /var/tmp/portage/app-admin/webmin-1.430/work/webmin-1.430 ...
> >>> Source compiled.
> >>> Test phase [not enabled]: app-admin/webmin-1.430
> 
> >>> Install webmin-1.430 into /var/tmp/portage/app-admin/webmin-1.430/image/ category app-admin
> >>> Completed installing webmin-1.430 into /var/tmp/portage/app-admin/webmin-1.430/image/
> 
> --------------------------- ACCESS VIOLATION SUMMARY
> ---------------------------
> LOG FILE = "/var/log/sandbox/sandbox-5557.log"
> 
> unlink:    /etc/passwd.lock
> unlink:    /etc/group.lock
> unlink:    /etc/shadow.lock
> unlink:    /etc/passwd.lock
> unlink:    /etc/group.lock
> unlink:    /etc/shadow.lock
> unlink:    /etc/passwd.lock
> unlink:    /etc/group.lock
> unlink:    /etc/shadow.lock
> unlink:    /etc/passwd.lock
> unlink:    /etc/group.lock
> unlink:    /etc/shadow.lock
> --------------------------------------------------------------------------------
> I didn't try #11, because he doesn't get an answer if this is an appropriate
> solution.
> 

are you sure that the access violations are only when you apply these patches?
the patches should not be the reason of the access violations.
Comment 16 Oliver Knodel 2008-09-01 22:39:29 UTC
I described it unlcear, if i install webmin-1.430 with the patches i got the access violations, w/o sandbox it works but this isn't the proper way. Installing webmin-1.400-r1 (gentoo tree), i don't get an error.
Comment 17 Christian Ruppert (idl0r) gentoo-dev 2008-09-02 21:18:44 UTC
Created attachment 164423 [details, diff]
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server
Comment 18 Christian Ruppert (idl0r) gentoo-dev 2008-09-02 21:21:48 UTC
(In reply to comment #16)
> I described it unlcear, if i install webmin-1.430 with the patches i got the
> access violations, w/o sandbox it works but this isn't the proper way.
> Installing webmin-1.400-r1 (gentoo tree), i don't get an error.
> 

please try https://bugs.gentoo.org/attachment.cgi?id=164423 when you don't need virtual-server.
the access violations are only from virtual-server.
this patch should work without any problems.
Comment 19 Oliver Knodel 2008-09-02 22:22:01 UTC
Installs with patch Comment #17 w/o access violation. Thank you.
Should we provide one patch from webmin-1.400-r1.ebuild (last in the tree) to webmin-1.430-r1.ebuild?
Comment 20 Christian Ruppert (idl0r) gentoo-dev 2008-09-02 22:39:44 UTC
Created attachment 164433 [details, diff]
webmin-1.430.ebuild.patch

diff from 1.400-r1 to 1.430 WITH virtual-server
Comment 21 Christian Ruppert (idl0r) gentoo-dev 2008-09-02 22:40:43 UTC
Created attachment 164435 [details, diff]
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server

diff from 1.400-r1 to 1.430 WITHOUT virtual-server
Comment 22 Christian Ruppert (idl0r) gentoo-dev 2008-09-03 21:28:22 UTC
(In reply to comment #11)
> Well. I seemed to have fixed it for me by messing with the perl in the
> sshd/sshd-lib.pl file. I created a patch:
> 
> -open(CONF, $config{'sshd_config'});
> +open(CONF, $config{'sshd_config'},O_RDONLY);
> 
> and it got past the sandbox violation. But the Miniserv doesnt like that, so I
> added:
> sed -i -e "s:,O_RDONLY::g" "/usr/libexec/webmin/sshd/sshd-lib.pl"
> during the pkg_postinst() to remove it.
> 
> I didn't upload the patches because I'm not sure if thats a proper solution or
> not but it seems to work for me.
> 

this does not work because it must be:

open(CONF, "<", $config{'sshd_config'});
or
sysopen(CONF, $config{'sshd_config'}, O_RDONLY);

but i'm not sure if that avoids the access violation because there will be a tmpfile created by virtual-server i think
Comment 23 Christian Ruppert (idl0r) gentoo-dev 2008-09-24 21:14:31 UTC
Created attachment 166321 [details, diff]
webmin-gentoo-configs.patch
Comment 24 Christian Ruppert (idl0r) gentoo-dev 2008-09-24 21:16:19 UTC
Created attachment 166322 [details, diff]
webmin-1.430-r1.ebuild.patch WITHOUT virtual-server

i've fixed various gentoo specific settings.
Comment 25 Christian Ruppert (idl0r) gentoo-dev 2008-10-28 18:40:51 UTC
Created attachment 170136 [details]
webmin-1.440.ebuild (without virtual-server)
Comment 26 Oliver Knodel 2008-10-28 20:09:15 UTC
ebuild 1.440 compiles fine on ~x86. Thank you.
Just a hint, 1.441 with small bug fixes is out.
Comment 27 Christian Ruppert (idl0r) gentoo-dev 2008-10-30 17:16:37 UTC
(In reply to comment #26)
> ebuild 1.440 compiles fine on ~x86. Thank you.
> Just a hint, 1.441 with small bug fixes is out.
> 

just a fix for IE :P
well.. rename to webmin-1.441.ebuild is enough.
Comment 28 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-05 01:10:03 UTC
Added 1.441 to the tree. Please file new bugs for any issue that comes up. Thanks.