diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-03-21 10:50:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-03-21 10:51:43 +0100 |
commit | 19130626a0e81e3e1f139ad46f390de63cad136f (patch) | |
tree | feda61919ca22d2e1f03f3b499dae02c0bc5128d /coccinelle/log-json.cocci | |
parent | nspawn: mask out CAP_NET_ADMIN again if settings file turns off private netwo... (diff) | |
download | systemd-19130626a0e81e3e1f139ad46f390de63cad136f.tar.xz systemd-19130626a0e81e3e1f139ad46f390de63cad136f.zip |
nspawn-oci: use SYNTHETIC_ERRNO
Diffstat (limited to 'coccinelle/log-json.cocci')
-rw-r--r-- | coccinelle/log-json.cocci | 8 |
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; |