Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some help with sandbox, please!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
luciano
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2004
Posts: 132

PostPosted: Mon Sep 09, 2013 10:47 am    Post subject: Some help with sandbox, please! Reply with quote

I've known about sandbox for a while,and thought it's a great idea to ensure my system doesn't get polluted with all sort of stuff outside the portage installation tree. Lately I've come across some commercial software that I must install manually, and decided to use sandbox to ensure it only installs under '/opt'.

So I tried the following:

Code:

chichenitza R2013b # sandbox
============================= Gentoo path sandbox ==============================
Detection of the support files.
Verification of the required files.
Setting up the required environment variables.
The protected environment has been started.
--------------------------------------------------------------------------------
Process being started in forked instance.

 * Loading sandboxed shell
 *  Log File:           /var/log/sandbox/sandbox-5976.log
 *  Debug Log File:     /var/log/sandbox/sandbox-debug-5976.log
 *  sandboxon:          turn sandbox on
 *  sandboxoff:         turn sandbox off
 *  addread <path>:     allow <path> to be read
 *  addwrite <path>:    allow <path> to be written
 *  adddeny <path>:     deny access to <path>
 *  addpredict <path>:  allow fake access to <path>

[s] chichenitza R2013b # sandboxon
[s] chichenitza R2013b # addwrite /opt/
[s] chichenitza R2013b # ./install


And this launches the binary installer (it's a java installer, I believe). It ran without any errors, and I selected '/opt/X' as the destination directory. However, after it closes, I can't see any files installed in my system! Is there something I need to do to 'commit' the changes? Where's all my stuff gone? I still have the shell open if that helps ...

To make matters worse, I registered the software as a final installation step, so I'm going to have trouble re-installing it!

I tried googling for some more information on sandbox, but there seems no documentation available. Somebody should remedy this! It looks like a great tool!
Back to top
View user's profile Send private message
luciano
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2004
Posts: 132

PostPosted: Mon Sep 09, 2013 2:55 pm    Post subject: Reply with quote

Ah seems it was a typo in the installation path! Still, I'm surprised there is no documentation for this product.

Also, everything got installed into '/optl' - I would have expected that sandbox would have prevented this. What did I need to do to control this? 'adddeny /' and then 'addwrite /opt' ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum