Re: [sandbox] specifying the destination of '-i' files/dirs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/24/2011 02:59 PM, Daniel J Walsh wrote:
> I guess I would need a syntax that would make sense.  Remember you can do
> 
> sandbox -X -i ~/.mozilla -i ~/.gnome ...
> 
> I guess you could use some syntax where the we had a separator, that
> showed the destination directory
> 
> sandbox -X -i ~/.sandbox/ffftemplate1/.mozilla:~/.mozilla
> 
> But the separator would need to be something not likely to be in a file
> system.

Yes, I'm aware about the possibility of multiple '-i',
but I think it would still be possible to implement this without a
special separator. Though I have to admit that it won't be very nice ;)

sandbox -X -i ~/foo evince
(evince is the last argument and is therefore the cmd)

sandbox -X -i ~/a/b ~/b evince
(~/b is the destination)

sandbox -X -i ~/a/b/c ~/d  -i ~/f/c evince

is also clear.
Is there a risk of an ambiguous syntax?

One would have to implement a "collision detection" for cases like:
sandbox -X -i ~/a/b/c ~/c -i ~/c evince

I also thought about a change to the '-i' switch so that everything
would be copied to ~

example:
sandbox -X -i ~/a/b/c evince
would automatically copy ~/a/b/c to ~/c

but this behaviour would result in problems with commands like this:

sandbox -X -i ~/a/c -i ~/x/c evince
because two distinct files/folders would have the same destination.

Attachment: signature.asc
Description: OpenPGP digital signature

--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux