Add docs about apparmor profile setting
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
This commit is contained in:
parent
26645c90ac
commit
06cc0ba6ba
5 changed files with 14 additions and 7 deletions
|
@ -15,7 +15,7 @@ const (
|
|||
conmonPath = "/usr/libexec/ocid/conmon"
|
||||
pausePath = "/usr/libexec/ocid/pause"
|
||||
seccompProfilePath = "/etc/ocid/seccomp.json"
|
||||
apparmorProfileName = "crio-default"
|
||||
apparmorProfileName = "ocid-default"
|
||||
)
|
||||
|
||||
var commentedConfigTemplate = template.Must(template.New("config").Parse(`
|
||||
|
|
|
@ -140,7 +140,7 @@ func main() {
|
|||
},
|
||||
cli.StringFlag{
|
||||
Name: "apparmor-profile",
|
||||
Usage: "default apparmor profile name (default: \"crio-default\")",
|
||||
Usage: "default apparmor profile name (default: \"ocid-default\")",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "selinux",
|
||||
|
|
|
@ -20,6 +20,7 @@ ocid - Enable OCI Kubernetes Container Runtime daemon
|
|||
[**--sandboxdir**=[*value*]]
|
||||
[**--selinux**]
|
||||
[**--seccomp-profile**=[*value*]]
|
||||
[**--apparmor-profile**=[*value*]]
|
||||
[**--version**|**-v**]
|
||||
|
||||
# DESCRIPTION
|
||||
|
@ -76,12 +77,15 @@ ocid is meant to provide an integration path between OCI conformant runtimes and
|
|||
**--sandboxdir**=""
|
||||
OCID pod sandbox dir (default: "/var/lib/ocid/sandboxes")
|
||||
|
||||
**--selinux**
|
||||
**--selinux**=*true*|*false*
|
||||
Enable selinux support (default: false)
|
||||
|
||||
**seccomp_profile**
|
||||
**--seccomp_profile**=""
|
||||
Path to the seccomp json profile to be used as the runtime's default (default: "/etc/ocid/seccomp.json")
|
||||
|
||||
**--apparmor_profile**=""
|
||||
Name of the apparmor profile to be used as the runtime's default (default: "ocid-default")
|
||||
|
||||
**--version, -v**
|
||||
Print the version
|
||||
|
||||
|
|
|
@ -55,12 +55,15 @@ The `ocid` table supports the following options:
|
|||
**runtime**=""
|
||||
OCI runtime path (default: "/usr/bin/runc")
|
||||
|
||||
**selinux**
|
||||
**selinux**=*true*|*false*
|
||||
Enable selinux support (default: false)
|
||||
|
||||
**seccomp_profile**
|
||||
**seccomp_profile**=""
|
||||
Path to the seccomp json profile to be used as the runtime's default (default: "/etc/ocid/seccomp.json")
|
||||
|
||||
**apparmor_profile**=""
|
||||
Name of the apparmor profile to be used as the runtime's default (default: "ocid-default")
|
||||
|
||||
## OCID.IMAGE TABLE
|
||||
|
||||
**pause**=""
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
const (
|
||||
// defaultApparmorProfile is the name of default apparmor profile name.
|
||||
defaultApparmorProfile = "crio-default"
|
||||
defaultApparmorProfile = "ocid-default"
|
||||
|
||||
// profileDirectory is the file store for apparmor profiles and macros.
|
||||
profileDirectory = "/etc/apparmor.d"
|
||||
|
|
Loading…
Reference in a new issue