added /usr/local/bin to private-bin

This commit is contained in:
netblue30 2016-04-12 08:59:59 -04:00
parent bb4830eb7e
commit 90c1f897e7
4 changed files with 4 additions and 5 deletions

View file

@ -25,9 +25,10 @@
#include <unistd.h>
static char *paths[] = {
"/usr/local/bin",
"/bin",
"/sbin",
"/usr/bin",
"/sbin",
"/usr/sbin",
NULL
};

View file

@ -204,7 +204,6 @@ static int monitor_application(pid_t app_pid) {
if (monitored_pid != 0 && arg_debug)
printf("Sandbox monitor: monitoring %u\n", monitored_pid);
}
printf("blablabla\n");
// return the latest exit status.
return status;

View file

@ -180,8 +180,7 @@ void usage(void) {
printf(" --private=directory - use directory as user home.\n\n");
printf(" --private-bin=file,file - build a new /bin in a temporary filesystem,\n");
printf("\tand copy the programs in the list. The same directory is\n");
printf("\talso bind-mounted over /sbin, /usr/bin and /usr/sbin.\n\n");
printf("\tand copy the programs in the list.\n\n");
printf(" --private-dev - create a new /dev directory. Only dri, null, full, zero,\n");
printf("\ttty, pst, ptms, random, urandom, log and shm devices are available.\n\n");

View file

@ -1000,7 +1000,7 @@ $ firejail \-\-private=/home/netblue/firefox-home firefox
.TP
\fB\-\-private-bin=file,file
Build a new /bin in a temporary filesystem, and copy the programs in the list.
The same directory is also bind-mounted over /sbin, /usr/bin and /usr/sbin.
The same directory is also bind-mounted over /sbin, /usr/bin, /usr/sbin and /usr/local/bin.
.br
.br