Files
kernel_arpi/include/uapi/linux
Christian Brauner 23b2c96fad seccomp: rework define for SECCOMP_USER_NOTIF_FLAG_CONTINUE
Switch from BIT(0) to (1UL << 0).
First, there are already two different forms used in the header, so there's
no need to add a third. Second, the BIT() macros is kernel internal and
afaict not actually exposed to userspace. Maybe there's some magic there
I'm missing but it definitely causes issues when compiling a program that
tries to use SECCOMP_USER_NOTIF_FLAG_CONTINUE. It currently fails in the
following way:

	# github.com/lxc/lxd/lxd
	/usr/bin/ld: $WORK/b001/_x003.o: in function
	`__do_user_notification_continue':
	lxd/main_checkfeature.go:240: undefined reference to `BIT'
	collect2: error: ld returned 1 exit status

Switching to (1UL << 0) should prevent that and is more in line what is
already done in the rest of the header.

Cc: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191024212539.4059-1-christian.brauner@ubuntu.com
Signed-off-by: Kees Cook <keescook@chromium.org>
2019-10-28 12:29:46 -07:00
..
2019-07-09 12:11:59 -07:00
2019-05-23 21:07:30 -04:00
2019-03-07 18:32:01 -08:00
2019-09-19 14:22:44 +02:00
2019-09-25 17:51:39 -07:00
2019-08-02 14:44:02 +10:00
2019-09-16 10:18:01 -04:00
2019-06-14 15:00:51 +05:30
2019-02-14 11:51:51 -05:00
2019-03-27 13:30:07 -07:00
2019-08-12 19:33:50 -07:00
2019-09-12 14:59:41 +02:00
2019-09-18 10:43:22 -06:00
2019-09-08 15:37:04 +02:00
2019-08-24 14:20:10 +02:00
2019-08-19 13:04:45 -07:00
2019-05-28 21:37:30 -07:00
2019-09-23 16:10:28 -05:00
2019-10-02 20:32:27 -06:00
2019-07-30 20:34:34 +02:00
2019-05-28 21:37:30 -07:00
2019-09-16 16:26:11 +02:00
2019-02-14 11:51:51 -05:00
2019-09-18 20:17:50 +02:00
2019-08-01 21:49:46 +02:00