* [PATCH nft 1/2] src: secmark: fix brace indentation in object output
@ 2019-08-20 15:50 Eric Jallot
0 siblings, 0 replies; only message in thread
From: Eric Jallot @ 2019-08-20 15:50 UTC (permalink / raw)
To: netfilter-devel
Before patch:
# nft list secmarks
table inet t {
secmark s {
system_u:object_r:ssh_server_packet_t:s0 }
}
After patch:
# nft list secmarks
table inet t {
secmark s {
system_u:object_r:ssh_server_packet_t:s0
}
}
Fixes: 3bc84e5c ("src: add support for setting secmark")
Signed-off-by: Eric Jallot <ejallot@gmail.com>
---
src/rule.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/rule.c b/src/rule.c
index 5655e8c..255fe37 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -1821,6 +1821,7 @@ static void obj_print_data(const struct obj *obj,
nft_print(octx, " # handle %" PRIu64,
obj->handle.handle.id);
nft_print(octx, "%s%s%s", opts->nl, opts->tab, opts->tab);
nft_print(octx, "%s", obj->secmark.ctx);
+ nft_print(octx, "%s", opts->nl);
break;
case NFT_OBJECT_CT_HELPER:
nft_print(octx, " %s {", obj->handle.obj.name);
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-20 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-20 15:50 [PATCH nft 1/2] src: secmark: fix brace indentation in object output Eric Jallot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).