chrome_sa...x_selinux(8)
π NAME π
okay bestie, this is the chrome_sa...x_selinux(8) manual π and it's the SELinux Policy chrome_sandbox page. The star of the show is chrome_sandbox_selinux β Security Enhanced Linux Policy for the chrome_sandbox processes. periodt β¨
β¨ DESCRIPTION β¨
Security-Enhanced Linux secures the chrome_sandbox processes via flexible mandatory access control. no cap, that's the whole mood π«Ά
The chrome_sandbox processes execute with the chrome_sandbox_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier.
For example:
ps -eZ | grep chrome_sandbox_t
πͺ ENTRYPOINTS πͺ
The chrome_sandbox_t SELinux type can be entered via the chrome_sandbox_exec_t file type.
The default entrypoint paths for the chrome_sandbox_t domain are the following:
/opt/google/chrome[^/]*/chrome-sandbox
/usr/lib/chromium-browser/chrome-sandbox
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system.
You can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux chrome_sandbox policy is very flexible, allowing users to setup their chrome_sandbox processes in as secure a method as possible.
The following process types are defined for chrome_sandbox:
chrome_sandbox_tchrome_sandbox_nacl_t
Note:semanage permissive -a chrome_sandbox_tcan be used to make the process typechrome_sandbox_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated.
π BOOLEANS π
SELinux policy is customizable based on least access required. chrome_sandbox policy is extremely flexible and has several booleans that allow you to manipulate the policy and run chrome_sandbox with the tightest access possible.
nscd_use_shmβ If you want to allow confined applications to use nscd shared memory, you must turn on thenscd_use_shmboolean. Enabled by default. Runsetsebool -P nscd_use_shm 1.selinuxuser_direct_dri_enabledβ If you want to allow regular users direct dri device access, you must turn on theselinuxuser_direct_dri_enabledboolean. Disabled by default. Runsetsebool -P selinuxuser_direct_dri_enabled 1.unconfined_chrome_sandbox_transitionβ If you want to allow unconfined users to transition to the chrome sandbox domains when runningchrome-sandbox, you must turn on theunconfined_chrome_sandbox_transitionboolean. Enabled by default. Runsetsebool -P unconfined_chrome_sandbox_transition 1.use_ecryptfs_home_dirsβ If you want to support ecryptfs home directories, you must turn on theuse_ecryptfs_home_dirsboolean. Disabled by default. Runsetsebool -P use_ecryptfs_home_dirs 1.use_fusefs_home_dirsβ If you want to support fusefs home directories, you must turn on theuse_fusefs_home_dirsboolean. Disabled by default. Runsetsebool -P use_fusefs_home_dirs 1.use_nfs_home_dirsβ If you want to support NFS home directories, you must turn on theuse_nfs_home_dirsboolean. Enabled by default. Runsetsebool -P use_nfs_home_dirs 1.use_samba_home_dirsβ If you want to support SAMBA home directories, you must turn on theuse_samba_home_dirsboolean. Disabled by default. Runsetsebool -P use_samba_home_dirs 1.xserver_clients_write_xshmβ If you want to allows clients to write to the X server shared memory segments, you must turn on thexserver_clients_write_xshmboolean. Disabled by default. Runsetsebool -P xserver_clients_write_xshm 1.
π MANAGED FILES π
The SELinux process type chrome_sandbox_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions.
cgroup_typeβ listed as a managed file type.chrome_sandbox_home_tβ default paths:/home/[^/]+/.cache/chromium(/.*)?/home/[^/]+/.config/chromium(/.*)?/home/[^/]+/.cache/google-chrome(/.*)?/home/[^/]+/.cache/google-chrome-unstable(/.*)?
chrome_sandbox_tmp_tβ listed as a managed file type.chrome_sandbox_tmpfs_tβ listed as a managed file type.home_cert_tβ default paths:/root/.pki(/.*)?/root/.cert(/.*)?/home/[^/]+/.pki(/.*)?/home/[^/]+/.cert(/.*)?/home/[^/]+/.local/share/networkmanagement/certificates(/.*)?/home/[^/]+/.kde/share/apps/networkmanagement/certificates(/.*)?
mozilla_home_tβ default paths:/home/[^/]+/.lyx(/.*)?/home/[^/]+/.java(/.*)?/home/[^/]+/.adobe(/.*)?/home/[^/]+/.gnash(/.*)?/home/[^/]+/.webex(/.*)?/home/[^/]+/.IBMERS(/.*)?/home/[^/]+/.galeon(/.*)?/home/[^/]+/.spicec(/.*)?/home/[^/]+/POkemon.*(/.*)?/home/[^/]+/.icedtea(/.*)?/home/[^/]+/.mozilla(/.*)?/home/[^/]+/.phoenix(/.*)?/home/[^/]+/.netscape(/.*)?/home/[^/]+/.ICAClient(/.*)?/home/[^/]+/.quakelive(/.*)?/home/[^/]+/.macromedia(/.*)?/home/[^/]+/.thunderbird(/.*)?/home/[^/]+/.gcjwebplugin(/.*)?/home/[^/]+/.grl-podcasts(/.*)?/home/[^/]+/.cache/mozilla(/.*)?/home/[^/]+/.icedteaplugin(/.*)?/home/[^/]+/zimbrauserdata(/.*)?/home/[^/]+/.juniper_networks(/.*)?/home/[^/]+/.cache/icedtea-web(/.*)?/home/[^/]+/abc/home/[^/]+/mozilla.pdf/home/[^/]+/.gnashpluginrc
user_fonts_cache_tβ default paths:/root/.fontconfig(/.*)?/root/.fonts/auto(/.*)?/root/.fonts.cache-.*/root/.cache/fontconfig(/.*)?/home/[^/]+/.fontconfig(/.*)?/home/[^/]+/.fonts/auto(/.*)?/home/[^/]+/.fonts.cache-.*/home/[^/]+/.cache/fontconfig(/.*)?
π·οΈ FILE CONTEXTS π·οΈ
SELinux requires files to have an extended attribute to define the file type.
You can see the context of a file using the -Z option to ls.
Policy governs the access confined processes have to these files. SELinux chrome_sandbox policy is very flexible, allowing users to setup their chrome_sandbox processes in as secure a method as possible.
πΈ STANDARD FILE CONTEXT πΈ
SELinux defines the file context types for the chrome_sandbox; if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.
semanage fcontext -a -t chrome_sandbox_exec_t '/srv/chrome_sandbox/content(/.*)?'
restorecon -R -v /srv/mychrome_sandbox_content
Note: SELinux often uses regular expressions to specify labels that match multiple files.
The following file types are defined for chrome_sandbox:
chrome_sandbox_exec_tβ Set files with thechrome_sandbox_exec_ttype, if you want to transition an executable to thechrome_sandbox_tdomain.- Paths:
/opt/google/chrome[^/]*/chrome-sandbox/usr/lib/chromium-browser/chrome-sandbox
- Paths:
chrome_sandbox_home_tβ Set files with thechrome_sandbox_home_ttype, if you want to store chrome sandbox files in the users home directory.- Paths:
/home/[^/]+/.cache/chromium(/.*)?/home/[^/]+/.config/chromium(/.*)?/home/[^/]+/.cache/google-chrome(/.*)?/home/[^/]+/.cache/google-chrome-unstable(/.*)?
- Paths:
chrome_sandbox_nacl_exec_tβ Set files with thechrome_sandbox_nacl_exec_ttype, if you want to transition an executable to thechrome_sandbox_nacl_tdomain.- Paths:
/opt/google/chrome[^/]*/nacl_helper_bootstrap/opt/google/chrome/nacl_helper_bootstrap/usr/lib/chromium-browser/nacl_helper_bootstrap
- Paths:
chrome_sandbox_tmp_tβ Set files with thechrome_sandbox_tmp_ttype, if you want to store chrome sandbox temporary files in the/tmpdirectories.chrome_sandbox_tmpfs_tβ Set files with thechrome_sandbox_tmpfs_ttype, if you want to store chrome sandbox files on a tmpfs file system.
Note: File context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels.
π οΈ COMMANDS π οΈ
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis a GUI tool available to customize SELinux policy settings.
βοΈ AUTHOR βοΈ
This manual page was auto-generated using sepolicy manpage .
π SEE ALSO π
selinux(8)chrome_sandbox(8)semanage(8)restorecon(8)chcon(1)sepolicy(8)setsebool(8)chrome_sandbox_nacl_selinux(8)chrome_sandbox_nacl_selinux(8)(yes bestie, it's listed twice π )
that's the whole page, bestie π«Ά source/version chrome_sandbox, date 26-10-06, manual footer vibe chrome_sa...x_selinux(8). periodt π
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms