Unix Technical Forum

Copy a door?

This is a discussion on Copy a door? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> How does one make a copy of a door file? (Solaris 8)...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:40 AM
dust
 
Posts: n/a
Default Copy a door?

How does one make a copy of a door file? (Solaris 8)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:40 AM
Alan Coopersmith
 
Posts: n/a
Default Re: Copy a door?

dust <powdery@dusty.stuff> writes in comp.unix.solaris:
|How does one make a copy of a door file? (Solaris 8)

You don't - like a pipe or socket, there's nothing to copy.

--
__________________________________________________ ______________________
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
http://www.csua.berkeley.edu/~alanc/ * http://blogs.sun.com/alanc/
Working for, but definitely not speaking for, Sun Microsystems, Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:40 AM
Joerg Schilling
 
Posts: n/a
Default Re: Copy a door?

In article <MPG.1b72048e99043ef5989925@news.alt.net>,
dust <powdery@dusty.stuff> wrote:
>How does one make a copy of a door file? (Solaris 8)


It makes no sense.

A door file is a file from DOORFS mounted on top of a usually
empty file.

If you like to make a backup from a FS, you usually first create
a snapshot and mount it. This mounted snapshot does not include
the DOOR.

If you use
star -copy ....

the DOOR file will be "archived" as DOOR but extracted as plain file.

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:40 AM
Joerg Schilling
 
Posts: n/a
Default Re: Copy a door?

In article <cea37a$26i1$1@agate.berkeley.edu>,
Alan Coopersmith <alanc@alum.calberkeley.org> wrote:
>dust <powdery@dusty.stuff> writes in comp.unix.solaris:
>|How does one make a copy of a door file? (Solaris 8)
>
>You don't - like a pipe or socket, there's nothing to copy.


There is definitely a difference between a door and a pipe or a socket.

Pipes and sockets both live in the hosting filesystem, a door doesn't.

You definitely need to copy a pipe because you don't know whether
it has been created intermediately by the process that needs it
or if it has been manually created by the admin for some reason.

You may copy a socket, but you cannot copy a door.

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 07:40 AM
Dragan Cvetkovic
 
Posts: n/a
Default Re: Copy a door?

js@cs.tu-berlin.de (Joerg Schilling) writes:

> If you use
> star -copy ....
>
> the DOOR file will be "archived" as DOOR but extracted as plain file.


Why? What would be the purpose of creating an empty file upon restore,
instead of a door?

Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 07:40 AM
Joerg Schilling
 
Posts: n/a
Default Re: Copy a door?

In article <lmbrhz6keh.fsf@privacy.net>,
Dragan Cvetkovic <dragan_usenet@gmx.net> wrote:
>js@cs.tu-berlin.de (Joerg Schilling) writes:
>
>> If you use
>> star -copy ....
>>
>> the DOOR file will be "archived" as DOOR but extracted as plain file.

>
>Why? What would be the purpose of creating an empty file upon restore,
>instead of a door?


Doors arre usually mounted on empty files.

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 07:40 AM
dust
 
Posts: n/a
Default Re: Copy a door?

In article <cea37a$26i1$1@agate.berkeley.edu>, alanc@alum.calberkeley.org
says...
> dust <powdery@dusty.stuff> writes in comp.unix.solaris:
> |How does one make a copy of a door file? (Solaris 8)
>
> You don't - like a pipe or socket, there's nothing to copy.


a. Pipes can be copied. The -R switch to "cp" allows one to replicate a
pipe.

b. Sockets don't exist or appear in the file system, so nobody would ever
think to try to copy one.

c. If it appears in the file system (as doors do) then there is probably
a way to either replicate it or re-create it, although not necessarily
with common Solaris commands.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 07:40 AM
dust
 
Posts: n/a
Default Re: Copy a door?

In article <ceahiq$k9g$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de
says...
>
> Pipes and sockets both live in the hosting filesystem, a door doesn't.


Can you elaborate?

I don't think I've ever seen a socket in a directory listing. I've seen
pipes and doors, though.

> You definitely need to copy a pipe because you don't know whether
> it has been created intermediately by the process that needs it
> or if it has been manually created by the admin for some reason.
>
> You may copy a socket, but you cannot copy a door.


Just out of curiosity, how does one copy a socket?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-16-2008, 07:40 AM
Rich Teer
 
Posts: n/a
Default Re: Copy a door?

On Thu, 29 Jul 2004, dust wrote:

> b. Sockets don't exist or appear in the file system, so nobody would ever
> think to try to copy one.


Some do, e.g., those of AF_UNIX (aka AF_LOCAL).

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-16-2008, 07:40 AM
dust
 
Posts: n/a
Default Re: Copy a door?

In article <ceahd5$jtp$1@news.cs.tu-berlin.de>, js@cs.tu-berlin.de
says...
> In article <MPG.1b72048e99043ef5989925@news.alt.net>,
> dust <powdery@dusty.stuff> wrote:
> >How does one make a copy of a door file? (Solaris 8)

>
> It makes no sense.
>
> A door file is a file from DOORFS mounted on top of a usually
> empty file.
>
> If you like to make a backup from a FS, you usually first create
> a snapshot and mount it. This mounted snapshot does not include
> the DOOR.
>
> If you use
> star -copy ....
>
> the DOOR file will be "archived" as DOOR but extracted as plain file.


Alright, then, allow me to be more specific...

There may not be a way to copy a door file (or door represented by the
empty "door" file) in the general sense, but is there a way to either
copy or recreate /etc/.name_service_door?

That's really what I was after. You see, I've "jailed" a user in a
chroot environment, and that user needs to execute some commands that
access /etc/.name_service_door. (Which means I need to somehow put a
duplicate of that in the chroot environment.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com