diff options
author | Eric Jallot <ejallot@gmail.com> | 2019-08-20 17:50:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-08-20 18:03:07 +0200 |
commit | 03478af1bea03eafd43df94334cb001ed26145a3 (patch) | |
tree | b8d29d5106fb1c62524ebca4209b758dfd88c103 /tests/py/ip/redirect.t.json | |
parent | d42e9a1b9abc3b8a3cefce03baa0b12be1ba8b6e (diff) |
src: secmark: fix brace indentation and missing quotes in selctx output
Before patch:
# nft list secmarks | tee rules.nft
table inet t {
secmark s {
system_u:object_r:ssh_server_packet_t:s0 }
}
# nft flush ruleset
# nft -f rules.nft
rules.nft:3:11-11: Error: syntax error, unexpected colon
system_u:object_r:ssh_server_packet_t:s0
Colon is not allowed in strings and breaks nft -f.
So move to quoted string in selctx output.
After patch:
# nft list secmarks | tee rules.nft
table inet t {
secmark s {
"system_u:object_r:ssh_server_packet_t:s0"
}
}
# nft flush ruleset
# nft -f rules.nft
Fixes: 3bc84e5c ("src: add support for setting secmark")
Signed-off-by: Eric Jallot <ejallot@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/redirect.t.json')
0 files changed, 0 insertions, 0 deletions