sandbox - trying to use it / some bugs

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

 



There is a tool - sandbox - in policycoreutils.   I wanted to use it
to provide a way to more safely possibly hostile files sent from
semi-"trusted" people.  E.g.

   sandbox -X -i ~/myfile1.doc libreoffice  ~/myfile1.doc

Doing this I came across a couple of problems and would like some
advice / help with fixes

The first thing is that, for files that are in the user's home
directory and have normal user contexts (e.g. on default Fedora 23
install unconfined_u:object_r:user_home_t) the program in the sandbox
simply fails to access the file.

  Full bug report:

   https://github.com/SELinuxProject/selinux/issues/16
probably also
   https://bugzilla.redhat.com//show_bug.cgi?id=1317046


As I started debugging,  the second thing is that it appears that the
intention of the different sandbox types doesn't match the
documentation which is confusing.

  https://github.com/SELinuxProject/selinux/issues/17

so I propose a patch for it

   https://github.com/SELinuxProject/selinux/pull/18


Please can someone look at these and comment back.

 - Is the doc fix correct? if so, could someone please accept it
 - is the correct thing for sandbox to do to change the context as it
copies files into the sandbox?
 - is there some more reliable / better already existing alternative to sandbox?

Thanks in advance for any help anyone can give

  Michael

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux