From cbb99336cee7d37f4050875a95946ca88b7ac690 Mon Sep 17 00:00:00 2001 From: Chong Cai Date: Wed, 4 Aug 2021 16:41:27 -0700 Subject: Add Fs controls Add Fs controls and implement "cat" command. PiperOrigin-RevId: 388812540 --- runsc/boot/controller.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runsc/boot/controller.go') diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go index 548797788..60b532798 100644 --- a/runsc/boot/controller.go +++ b/runsc/boot/controller.go @@ -109,6 +109,11 @@ const ( LifecycleResume = "Lifecycle.Resume" ) +// Filesystem related commands (see fs.go for more details). +const ( + FsCat = "Fs.Cat" +) + // ControlSocketAddr generates an abstract unix socket name for the given ID. func ControlSocketAddr(id string) string { return fmt.Sprintf("\x00runsc-sandbox.%s", id) @@ -151,6 +156,7 @@ func newController(fd int, l *Loader) (*controller, error) { ctrl.srv.Register(&debug{}) ctrl.srv.Register(&control.Logging{}) ctrl.srv.Register(&control.Lifecycle{l.k}) + ctrl.srv.Register(&control.Fs{l.k}) if l.root.conf.ProfileEnable { ctrl.srv.Register(control.NewProfile(l.k)) -- cgit v1.2.3