summaryrefslogtreecommitdiffstats
path: root/coccinelle/log-json.cocci
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-21 10:50:59 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-21 10:51:43 +0100
commit19130626a0e81e3e1f139ad46f390de63cad136f (patch)
treefeda61919ca22d2e1f03f3b499dae02c0bc5128d /coccinelle/log-json.cocci
parentnspawn: mask out CAP_NET_ADMIN again if settings file turns off private netwo... (diff)
downloadsystemd-19130626a0e81e3e1f139ad46f390de63cad136f.tar.xz
systemd-19130626a0e81e3e1f139ad46f390de63cad136f.zip
nspawn-oci: use SYNTHETIC_ERRNO
Diffstat (limited to 'coccinelle/log-json.cocci')
-rw-r--r--coccinelle/log-json.cocci8
1 files changed, 8 insertions, 0 deletions
diff --git a/coccinelle/log-json.cocci b/coccinelle/log-json.cocci
new file mode 100644
index 0000000000..3730fd6ea3
--- /dev/null
+++ b/coccinelle/log-json.cocci
@@ -0,0 +1,8 @@
+@@
+expression e, v, flags;
+expression list args;
+@@
++ return
+- json_log(v, flags, 0, args);
++ json_log(v, flags, SYNTHETIC_ERRNO(e), args);
+- return -e;