[OpenSER-Devel] [ openser-Patches-1927289 ] add chroot support to openserunix

SourceForge.net noreply at sourceforge.net
Thu Mar 27 20:15:56 CET 2008


Patches item #1927289, was opened at 2008-03-27 13:12
Message generated for change (Comment added) made by osas
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1927289&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Herman Sheremetyev (has207)
Assigned to: Nobody/Anonymous (nobody)
Summary: add chroot support to openserunix

Initial Comment:
Make openserunix respect the CHROOT_DIR environment variable.  Also increase the potential size of the path to the unix socket from 32 to 256, when running in chroot the paths are usually a bit longer.

----------------------------------------------------------------------

>Comment By: Ovidiu Sas (osas)
Date: 2008-03-27 15:15

Message:
Logged In: YES 
user_id=1395524
Originator: NO

Now that make sense :)
Patch applied.

Regards,
Ovidiu Sas


----------------------------------------------------------------------

Comment By: Herman Sheremetyev (has207)
Date: 2008-03-27 14:58

Message:
Logged In: YES 
user_id=808795
Originator: YES

Sorry about that, added the openserunix patch and removed the duplicate.

-Herman

----------------------------------------------------------------------

Comment By: Herman Sheremetyev (has207)
Date: 2008-03-27 14:56

Message:
Logged In: YES 
user_id=808795
Originator: YES

File Added: openserunix-chroot.patch

----------------------------------------------------------------------

Comment By: Ovidiu Sas (osas)
Date: 2008-03-27 14:32

Message:
Logged In: YES 
user_id=1395524
Originator: NO

Where in openserunix the CHROOT_DIR is used?  I checked the source and I
failed to see ... :(
Also, you uploaded the same patch twice (the 32->256 is missing).

Regards,
Ovidiu Sas

----------------------------------------------------------------------

Comment By: Herman Sheremetyev (has207)
Date: 2008-03-27 14:23

Message:
Logged In: YES 
user_id=808795
Originator: YES

CHROOT_DIR is local to the script so in order for it to be available in
openserunix, which is another commands spawned off by the shell, it needs
to be added to the script's environment.

-Herman

----------------------------------------------------------------------

Comment By: Ovidiu Sas (osas)
Date: 2008-03-27 13:51

Message:
Logged In: YES 
user_id=1395524
Originator: NO

Hello Herman,

Why the line: 'export CHROOT_DIR # needed for openserunix' is need it?
The CHROOT_DIR is defined in the openserctlrc file and it should be
visible here (just like in openserctl.fifo).


Regards,
Ovidiu Sas

----------------------------------------------------------------------

Comment By: Herman Sheremetyev (has207)
Date: 2008-03-27 13:19

Message:
Logged In: YES 
user_id=808795
Originator: YES

File Added: openserctl-unixsock.patch

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1927289&group_id=139143



More information about the Devel mailing list