[tracker/tracker-1.10] tracker-seccomp: Rewrap macros to make them clearer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.10] tracker-seccomp: Rewrap macros to make them clearer
- Date: Thu, 23 Feb 2017 11:02:54 +0000 (UTC)
commit d136b5766eaf784b5dec6d74cfba4da6d76c462a
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]