As suggested by Stephen Smalley. A couple of msgbuf struct definitions had to be removed as they were conflicting with system definitions. Signed-off-by: Paul Moore <paul@xxxxxxxxxxxxxx> --- tests/Makefile | 3 +++ tests/msg/msgrcv.c | 5 ----- tests/msg/msgsnd.c | 5 ----- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index e9d4646..8100b8f 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,3 +1,6 @@ + +export CFLAGS+=-D_GNU_SOURCE + DISTRO=$(shell ./os_detect) SUBDIRS_COMMON:=domain_trans entrypoint execshare exectrace execute_no_trans fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid wait file ioctl capable_file capable_net capable_sys diff --git a/tests/msg/msgrcv.c b/tests/msg/msgrcv.c index b23c801..285dcad 100644 --- a/tests/msg/msgrcv.c +++ b/tests/msg/msgrcv.c @@ -6,11 +6,6 @@ #define MSGMAX 1024 -struct msgbuf { - long mtype; /* message type, must be > 0 */ - char mtext[1024]; /* message data */ -}; - int main(int argc, char **argv) { int ch; diff --git a/tests/msg/msgsnd.c b/tests/msg/msgsnd.c index e200aef..7204ab6 100644 --- a/tests/msg/msgsnd.c +++ b/tests/msg/msgsnd.c @@ -7,11 +7,6 @@ #define MSGMAX 1024 -struct msgbuf { - long mtype; /* message type, must be > 0 */ - char mtext[1024]; /* message data */ -}; - int main(int argc, char **argv) { int ch; _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.