Will Drewry
e4da89d02f
seccomp: ignore secure_computing return values
...
This change is inspired by
https://lkml.org/lkml/2012/4/16/14
which fixes the build warnings for arches that don't support
CONFIG_HAVE_ARCH_SECCOMP_FILTER.
In particular, there is no requirement for the return value of
secure_computing() to be checked unless the architecture supports
seccomp filter. Instead of silencing the warnings with (void)
a new static inline is added to encode the expected behavior
in a compiler and human friendly way.
v2: - cleans things up with a static inline
- removes sfr's signed-off-by since it is a different approach
v1: - matches sfr's original change
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au >
Signed-off-by: Will Drewry <wad@chromium.org >
Acked-by: Kees Cook <keescook@chromium.org >
Signed-off-by: James Morris <james.l.morris@oracle.com >
2012-04-18 12:24:50 +10:00
..
2011-11-10 17:59:45 +00:00
2011-10-31 19:30:57 -04:00
2010-08-05 13:26:30 +01:00
2011-12-07 22:03:18 +00:00
2011-12-07 22:04:03 +00:00
2011-12-07 22:03:45 +00:00
2011-12-07 22:03:45 +00:00
2011-12-07 22:03:45 +00:00
2011-12-07 22:03:45 +00:00
2011-12-07 22:03:45 +00:00
2010-10-07 14:08:54 +01:00
2011-12-07 22:03:45 +00:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2011-02-21 13:33:50 -08:00
2011-02-21 13:33:50 -08:00
2011-02-21 13:33:50 -08:00
2011-02-21 13:33:50 -08:00
2011-02-21 13:33:50 -08:00
2011-05-19 09:55:44 +01:00
2011-09-21 17:52:04 +02:00
2011-12-07 22:03:45 +00:00
2011-09-21 17:52:28 +02:00
2011-10-31 19:30:56 -04:00
2012-03-28 18:30:02 +01:00
2011-03-29 14:48:07 +02:00
2011-03-29 14:48:07 +02:00
2011-03-29 14:48:07 +02:00
2011-10-31 19:30:57 -04:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2011-01-18 19:30:24 +01:00
2010-10-04 18:33:54 +01:00
2011-12-07 22:04:03 +00:00
2012-02-24 14:04:50 +01:00
2011-09-21 17:53:44 +02:00
2012-01-11 15:42:31 +01:00
2010-08-05 13:26:06 +01:00
2011-10-31 19:30:56 -04:00
2011-01-18 19:30:21 +01:00
2012-03-29 15:38:30 +10:30
2012-03-28 18:30:02 +01:00
2011-10-31 19:30:57 -04:00
2011-04-06 06:19:38 -07:00
2012-03-05 14:55:42 +01:00
2011-10-24 23:34:26 +01:00
2012-03-29 15:38:30 +10:30
2012-03-28 18:30:02 +01:00
2012-02-24 09:47:23 -07:00
2012-03-28 18:30:02 +01:00
2012-04-18 12:24:50 +10:00
2011-04-06 06:19:38 -07:00
2011-04-06 06:19:38 -07:00
2011-04-06 06:19:38 -07:00
2011-04-06 06:19:38 -07:00
2011-04-06 06:19:38 -07:00
2011-10-31 19:30:56 -04:00
2012-03-28 18:30:02 +01:00
2011-11-09 00:07:56 +00:00
2011-11-09 00:07:56 +00:00
2011-11-09 00:07:56 +00:00
2011-11-09 00:07:56 +00:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2010-04-12 17:26:15 +01:00
2012-03-28 18:30:02 +01:00
2012-03-29 15:38:30 +10:30
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-03-29 15:38:30 +10:30
2012-03-28 18:30:02 +01:00
2012-03-29 15:38:30 +10:30
2011-10-31 19:30:56 -04:00
2012-03-28 18:30:02 +01:00
2011-10-31 19:30:56 -04:00
2011-07-26 16:49:47 -07:00
2012-03-28 18:30:02 +01:00
2011-10-31 19:30:56 -04:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-03-23 16:58:42 -07:00
2012-02-20 18:33:18 +01:00
2012-03-28 18:30:02 +01:00