| Summary: | sandbox allows applications to open files | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Berry <bfedora98> |
| Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | dwalsh, mads, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-27 13:22:19 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike Berry
2011-07-14 01:46:04 UTC
Well actually it is a little looser than that, the man page should state that it allows the open of files/executables that are installed on the system, but does not allow write to these objects.
sesearch -A -s sandbox_t -p open -c file
Found 18 semantic av rules:
allow domain abrt_var_run_t : file { ioctl read getattr lock open } ;
allow sandbox_domain usr_t : file { ioctl read getattr lock open } ;
allow sandbox_domain var_t : file { ioctl read getattr lock open } ;
allow sandbox_domain locale_t : file { ioctl read getattr lock open } ;
allow sandbox_t sandbox_t : file { ioctl read write getattr lock append open } ;
allow domain sysctl_crypto_t : file { ioctl read getattr lock open } ;
allow domain abrt_t : file { ioctl read getattr lock open } ;
allow domain lib_t : file { ioctl read getattr lock execute open } ;
allow sandbox_domain sandbox_file_t : file { ioctl read write create getattr setattr lock append unlink link rename execute execute_no_trans open } ;
allow domain abrt_helper_exec_t : file { read getattr execute open } ;
allow domain ld_so_t : file { ioctl read getattr execute open } ;
allow sandbox_domain configfile : file { ioctl read getattr lock open } ;
allow domain textrel_shlib_t : file { ioctl read getattr execute execmod open } ;
allow domain rpm_script_tmp_t : file { ioctl read getattr lock open } ;
allow domain sosreport_tmp_t : file { ioctl getattr lock append open } ;
allow domain rpm_tmp_t : file { ioctl getattr lock append open } ;
allow sandbox_domain exec_type : file { ioctl read getattr lock execute execute_no_trans open } ;
allow domain ld_so_cache_t : file { ioctl read getattr lock open } ;
These are the types that sandbox_t is allowed to open. Mainly executables shared libraries and config files, If you look at what files it is allowed to write and open. It gets much smaller.
# sesearch -A -s sandbox_t -p open -c file | grep write
allow sandbox_t sandbox_t : file { ioctl read write getattr lock append open } ;
allow sandbox_domain sandbox_file_t : file { ioctl read write create getattr setattr lock append unlink link rename execute execute_no_trans open } ;
sandbox_t is the label of its processes under /proc
Since this version of Fedora is no longer supported I am closing this bugs. If you are still seeing this bug in a current version of fedora, please reopen the bugzilla with the appropriate version number. |