You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Marler, Gordon" <Go...@lehman.com> on 2007/09/26 16:31:54 UTC

Importing/Managing directory trees that contain special block/character device files

Apparently, the issue of importing block/character device files, among
other special files has been discussed previously
(http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=20119),
but rejected as having security implications.  Since the mentioned
thread took place in 2004, has this stance changed?

I have a use case for them, and am looking either for direct support for
importing such files into an SVN repository, or some indirect method of
managing them in SVN, like having a hook-script/trigger create a cpio
archive of the containing directory on checkin, and an extract of the
archive upon checkout.

The use case here is trying to version control multiple copies of an OS
image.  A portion of the OS image in each case is a "miniroot", that is
directly bootable over the network, and thus contains block/character
device files.  Patches can be applied over time to this "miniroot", so
there is a need to create a tag for each patch application, so we can
check out the proper variant of any particular OS image on network
installations servers as needed.

Can anyone suggest a direct/indirect solution to this use case?

Gordon Marler
gmarler@lehman.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.

--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Importing/Managing directory trees that contain special block/character device files

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 26, 2007, at 11:31, Marler, Gordon wrote:

> Apparently, the issue of importing block/character device files, among
> other special files has been discussed previously
> (http://subversion.tigris.org/servlets/ReadMsg? 
> list=users&msgNo=20119),
> but rejected as having security implications.  Since the mentioned
> thread took place in 2004, has this stance changed?

I don't think this has changed at all.

> I have a use case for them, and am looking either for direct  
> support for
> importing such files into an SVN repository, or some indirect  
> method of
> managing them in SVN, like having a hook-script/trigger create a cpio
> archive of the containing directory on checkin, and an extract of the
> archive upon checkout.

It sounds like you're looking for a script to run automatically on  
the client side at checkout, update, export, commit times. But  
Subversion hooks don't do that. Rather, they run automatically on the  
server. The pre-commit hook also can't change the transaction that's  
in the incoming transaction, and there are no pre-checkout or pre- 
update or pre-export hooks. So Subversion hooks won't help you here.

> The use case here is trying to version control multiple copies of  
> an OS
> image.  A portion of the OS image in each case is a "miniroot",  
> that is
> directly bootable over the network, and thus contains block/character
> device files.  Patches can be applied over time to this "miniroot", so
> there is a need to create a tag for each patch application, so we can
> check out the proper variant of any particular OS image on network
> installations servers as needed.
>
> Can anyone suggest a direct/indirect solution to this use case?

You would have to create the normal file archive manually before  
putting it in Subversion, and un-archive it after you take it out of  
Subversion. You can write scripts to automate this, but Subversion  
won't call them for you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org