summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/sentry/fs/sys/sys.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/sentry/fs/sys/sys.go b/pkg/sentry/fs/sys/sys.go
index b1c3d48eb..7b9697668 100644
--- a/pkg/sentry/fs/sys/sys.go
+++ b/pkg/sentry/fs/sys/sys.go
@@ -56,9 +56,11 @@ func New(ctx context.Context, msrc *fs.MountSource) *fs.Inode {
// Add a basic set of top-level directories. In Linux, these
// are dynamically added depending on the KConfig. Here we just
// add the most common ones.
- "block": newDir(ctx, msrc, nil),
- "bus": newDir(ctx, msrc, nil),
- "class": newDir(ctx, msrc, nil),
+ "block": newDir(ctx, msrc, nil),
+ "bus": newDir(ctx, msrc, nil),
+ "class": newDir(ctx, msrc, map[string]*fs.Inode{
+ "power_supply": newDir(ctx, msrc, nil),
+ }),
"dev": newDir(ctx, msrc, nil),
"devices": newDevicesDir(ctx, msrc),
"firmware": newDir(ctx, msrc, nil),