Use accessor for runsc ControlConfig proto.

PiperOrigin-RevId: 395859347
This commit is contained in:
Rahat Mahmood
2021-09-09 22:57:50 -07:00
committed by gVisor bot
parent 2572af3886
commit 7da9bb18c2
+1 -1
View File
@@ -404,7 +404,7 @@ func (c *controlConfig) Get() interface{} {
// String implements flag.Value.
func (c *controlConfig) String() string {
v := ""
for _, control := range c.Controls.AllowedControls {
for _, control := range c.Controls.GetAllowedControls() {
if len(v) > 0 {
v += ","
}