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
..
2008-12-04 09:17:15 -08:00
2011-10-31 19:30:54 -04:00
2008-12-04 09:17:12 -08:00
2008-12-04 09:17:21 -08:00
2012-03-28 18:30:03 +01:00
2011-03-30 17:37:56 -07:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2011-06-07 16:06:34 -07:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-10-31 19:30:53 -04:00
2009-06-16 04:56:28 -07:00
2012-03-28 18:30:03 +01:00
2011-10-31 19:30:54 -04:00
2012-03-28 11:33:24 +11:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-11-17 22:44:58 -08:00
2011-07-16 10:45:12 -07:00
2008-12-04 09:17:20 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2010-04-12 22:37:26 -07:00
2008-12-04 09:17:21 -08:00
2011-04-21 16:44:45 -07:00
2011-09-16 14:21:33 -07:00
2010-08-08 22:07:36 -07:00
2011-10-31 19:30:53 -04:00
2011-08-02 21:28:52 -07:00
2008-12-04 09:17:21 -08:00
2011-10-31 19:30:53 -04:00
2011-03-31 11:26:23 -03:00
2008-12-04 09:17:21 -08:00
2012-03-28 16:36:34 +02:00
2012-03-28 16:36:34 +02:00
2011-10-31 19:30:52 -04:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-03-29 22:40:52 -07:00
2011-08-02 21:28:52 -07:00
2012-03-28 18:30:03 +01:00
2012-03-29 22:40:52 -07:00
2010-03-30 22:02:32 +09:00
2010-04-14 02:04:29 -07:00
2011-08-05 00:53:57 -07:00
2011-10-31 19:30:53 -04:00
2010-03-30 22:02:32 +09:00
2012-03-29 15:38:30 +10:30
2011-10-31 19:30:53 -04:00
2012-02-23 20:19:04 -07:00
2011-03-16 18:19:04 -07:00
2011-07-26 16:49:47 -07:00
2011-08-20 17:14:54 -07:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:53 -04:00
2011-10-31 19:30:53 -04:00
2009-06-16 04:56:49 -07:00
2011-06-07 16:06:34 -07:00
2011-10-31 19:30:52 -04:00
2011-03-16 18:19:03 -07:00
2011-05-16 13:38:07 -07:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:52 -04:00
2011-10-31 19:30:52 -04:00
2008-12-04 09:17:21 -08:00
2012-03-28 16:36:34 +02:00
2008-12-04 09:17:21 -08:00
2012-03-20 10:42:01 -07:00
2011-10-31 19:30:52 -04:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:53 -04:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-10-31 19:30:54 -04:00
2011-10-31 19:30:54 -04:00
2011-12-04 10:46:56 -08:00
2011-06-07 16:06:34 -07:00
2010-10-10 21:53:30 -06:00
2011-06-07 16:06:34 -07:00
2010-07-24 09:58:22 -06:00
2012-03-28 18:30:03 +01:00
2012-04-18 12:24:50 +10:00
2012-03-28 18:30:03 +01:00
2010-10-26 08:59:55 -07:00
2010-10-26 08:59:55 -07:00
2011-10-31 19:30:52 -04:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-08-20 17:14:54 -07:00
2011-07-26 16:49:47 -07:00
2011-12-02 14:57:31 +01:00
2009-01-08 16:59:01 -08:00
2012-03-28 18:30:03 +01:00
2008-12-04 09:17:21 -08:00
2011-08-02 21:28:52 -07:00
2011-10-31 19:30:53 -04:00
2011-01-03 20:02:06 -07:00
2011-04-19 22:11:40 -07:00
2011-06-07 16:06:33 -07:00
2012-03-30 18:16:58 -07:00
2012-01-10 16:28:24 -08:00
2012-03-30 18:16:58 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-08-26 15:09:58 -07:00
2011-10-31 19:30:54 -04:00
2010-11-17 08:59:32 -08:00
2011-11-28 11:42:09 +11:00
2010-03-03 08:08:49 -08:00
2011-12-21 14:29:42 -08:00
2011-11-01 00:51:30 -07:00
2011-11-01 00:51:30 -07:00
2010-03-12 15:52:32 -08:00
2010-10-09 02:33:34 -06:00
2012-03-28 18:30:03 +01:00
2011-10-31 19:30:53 -04:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-02-19 15:19:52 -08:00
2010-06-25 11:17:57 -07:00
2011-02-01 12:39:59 -08:00
2011-03-16 18:19:15 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-06-07 16:06:34 -07:00
2011-06-07 16:06:34 -07:00
2008-12-04 09:17:21 -08:00
2012-03-28 11:33:24 +11:00
2011-10-31 19:30:53 -04:00
2012-03-28 18:30:03 +01:00
2011-08-05 00:53:57 -07:00
2010-11-17 08:59:32 -08:00
2008-12-04 09:17:21 -08:00
2008-07-17 21:37:46 -07:00
2008-07-17 21:37:46 -07:00