aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index 3386113ee..8214b35af 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -325,6 +325,7 @@ func init() {
checkFeature[FeatureComparisons] = checkComparisons
checkFeature[FeatureSandboxSetuid] = unconditionallyEnabled
checkFeature[FeatureSandboxNamespace] = checkSandboxNamespace
+ checkFeature[FeatureSandboxAndroidUntrustedApp] = checkSandboxAndroidUntrustedApp
checkFeature[FeatureFaultInjection] = checkFaultInjection
setupFeature[FeatureFaultInjection] = setupFaultInjection
checkFeature[FeatureLeakChecking] = checkLeakChecking
@@ -566,6 +567,13 @@ func checkSandboxNamespace() string {
return ""
}
+func checkSandboxAndroidUntrustedApp() string {
+ if err := osutil.IsAccessible("/sys/fs/selinux/policy"); err != nil {
+ return err.Error()
+ }
+ return ""
+}
+
func checkNetworkInjection() string {
if err := osutil.IsAccessible("/dev/net/tun"); err != nil {
return err.Error()