[tracker] tracker-seccomp: Rewrap macros to make them clearer
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-seccomp: Rewrap macros to make them clearer
- Date: Mon, 23 Jan 2017 13:59:14 +0000 (UTC)
commit bb65466fedd39b4c34deed6d0b92955f8281523d
Author: Philip Withnall <withnall endlessm com>
Date: Mon Jan 23 13:17:40 2017 +0000
tracker-seccomp: Rewrap macros to make them clearer
This introduces no functional changes.
https://bugzilla.gnome.org/show_bug.cgi?id=777591
src/libtracker-common/tracker-seccomp.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c
index 71f6a43..ea18085 100644
--- a/src/libtracker-common/tracker-seccomp.c
+++ b/src/libtracker-common/tracker-seccomp.c
@@ -38,9 +38,15 @@
#include <seccomp.h>
-#define ALLOW_RULE(call) G_STMT_START { if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) < 0)
goto out; } G_STMT_END
-
-#define ERROR_RULE(call, error) G_STMT_START { if (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (error),
SCMP_SYS(call), 0) < 0) goto out; } G_STMT_END
+#define ALLOW_RULE(call) G_STMT_START { \
+ if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) < 0) \
+ goto out; \
+} G_STMT_END
+
+#define ERROR_RULE(call, error) G_STMT_START { \
+ if (seccomp_rule_add (ctx, SCMP_ACT_ERRNO (error), SCMP_SYS(call), 0) < 0) \
+ goto out; \
+} G_STMT_END
gboolean
tracker_seccomp_init (void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]