mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
profiles/seccomp: fix comment
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
a24c750c7c
commit
197f3ee687
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ func GetDefaultProfile(rs *specs.Spec) (*specs.Seccomp, error) {
|
|||
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) {
|
||||
var config types.Seccomp
|
||||
if err := json.Unmarshal([]byte(body), &config); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue