2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

QuickProfileLanguage: test using block code quoting

Steve Beattie 2017-11-03 17:09:31 -07:00
parent 7f0b30251e
commit 3d784460cc

@ -21,21 +21,23 @@ flags field, then an opening **{** followed by the rules for the
profile and is finished by a closing **}** If the profile name does not profile and is finished by a closing **}** If the profile name does not
begin with a **/** then the keyword profile should be prepended. Eg: begin with a **/** then the keyword profile should be prepended. Eg:
` /usr/bin/firefox {` ```
`    # profile contents`  /usr/bin/firefox {
` }`     # profile contents
 }
` /usr/bin/firefox flags=(complain) {`  /usr/bin/firefox flags=(complain) {
`    # profile contents`     # profile contents
` }`  }
` profile /usr/bin/ {`  profile /usr/bin/ {
`    # profile contents`     # profile contents
` }`  }
` profile user1 {`  profile user1 {
`    # profile contents`     # profile contents
` }`  }
```
Profile names can contain file rule globbing characters to allow Profile names can contain file rule globbing characters to allow
them to apply to multiple executables, see File Globbing (below) them to apply to multiple executables, see File Globbing (below)
@ -358,12 +360,13 @@ source. For example:
The permissions to create and/or delete a file are: The permissions to create and/or delete a file are:
` /foo/bar      w,` ` /foo/bar      w,`
The permissions to copy a file are: The permissions to copy a file are:
` /foo/src      r,` ` /foo/src      r,
` /foo/dst      w,`  /foo/dst      w,`
The permissions to move a file are: The permissions to move a file are: