Просмотр исходного кода

Merge pull request #28832 from runcom/seccomp-comment-fix

profiles/seccomp: fix comment
Akihiro Suda 8 лет назад
Родитель
Сommit
58d59c63e0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      profiles/seccomp/seccomp.go

+ 1 - 1
profiles/seccomp/seccomp.go

@@ -20,7 +20,7 @@ func GetDefaultProfile(rs *specs.Spec) (*specs.Seccomp, error) {
 	return setupSeccomp(DefaultProfile(), rs)
 	return setupSeccomp(DefaultProfile(), rs)
 }
 }
 
 
-// LoadProfile takes a file path and decodes the seccomp profile.
+// LoadProfile takes a json string and decodes the seccomp profile.
 func LoadProfile(body string, rs *specs.Spec) (*specs.Seccomp, error) {
 func LoadProfile(body string, rs *specs.Spec) (*specs.Seccomp, error) {
 	var config types.Seccomp
 	var config types.Seccomp
 	if err := json.Unmarshal([]byte(body), &config); err != nil {
 	if err := json.Unmarshal([]byte(body), &config); err != nil {