Mike Gerdts wrote:

> >     https://cr.opensolaris.org/action/browse/pkg/dduvall/salvage-special/
> 
> I think bad things happen when running in a zone:
> 
>       #! /usr/bin/python2.6
> 
>       import os
> 
>       st = os.stat("/dev/null")
>       os.mknod("/var/tmp/null", st.st_mode, st.st_dev)
>       
>       print "OK"
> 
> But that gets a traceback:
> 
>       # /tmp/t
>       Traceback (most recent call last):
>         File "/tmp/t", line 6, in <module>
>           os.mknod("/var/tmp/null", st.st_mode, st.st_dev)
>       OSError: [Errno 1] Not owner

<facepalm>

I assumed that Claudia's test meant that the fix worked for the particular
situation.  I tested in a GZ, though, not an NGZ.

In an NGZ, should I simply attempt the mknod, and if it fails on EPERM, let
it go by?  I'm not sure how that should work with the testcase, since then
we can't even test in a zone.

Thoughts?

Thanks,
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to