Signed-off-by: Antonio Murdaca <runcom@redhat.com>
| ... | ... |
@@ -20,7 +20,7 @@ func GetDefaultProfile(rs *specs.Spec) (*specs.Seccomp, error) {
|
| 20 | 20 |
return setupSeccomp(DefaultProfile(), rs) |
| 21 | 21 |
} |
| 22 | 22 |
|
| 23 |
-// LoadProfile takes a file path and decodes the seccomp profile. |
|
| 23 |
+// LoadProfile takes a json string and decodes the seccomp profile. |
|
| 24 | 24 |
func LoadProfile(body string, rs *specs.Spec) (*specs.Seccomp, error) {
|
| 25 | 25 |
var config types.Seccomp |
| 26 | 26 |
if err := json.Unmarshal([]byte(body), &config); err != nil {
|