I hope this is the right place to ask Caithsith questions...

I ran into the following build issue on ARM64 on kernel >5.8 (5.15 in
my case) in lsm-4.12.c trying to compile caitsith-mod-0.2-20220621:

===========================
| make: Entering directory '/buildkernel-build-artifacts'
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/test.o
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/probe.o
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/permission.o
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/gc.o
| Generating built-in policy for CaitSith 0.2.
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/realpath.o
| Checking whether umode_t is used by include/linux/security.h or not.
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/lsm.o
|   CC [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/policy_io.o
|   LD [M]  /build/caitsith-mod/0.2-20220621-r0/caitsith/caitsith_test.o
| In file included from /build/caitsith-mod/0.2-20220621-r0/caitsith/lsm.c:12:
| /build/caitsith-mod/0.2-20220621-r0/caitsith/lsm-4.12.c: In function
'check_ro_pages':
| /build/caitsith-mod/0.2-20220621-r0/caitsith/lsm-4.12.c:1289:17:
error: implicit declaration of function 'probe_kernel_write'; did you
mean 'kernel_write'? [-Werror=implicit-function-declaration]
|  1289 |         return !probe_kernel_write(list, list, sizeof(void *));
|       |                 ^~~~~~~~~~~~~~~~~~
|       |                 kernel_write
| cc1: some warnings being treated as errors
| make[1]: *** [/buildkernel-source/scripts/Makefile.build:289:
/build/caitsith-mod/0.2-20220621-r0/caitsith/lsm.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: *** [/buildkernel-source/Makefile:1893:
/build/caitsith-mod/0.2-20220621-r0/caitsith] Error 2
===========================

It looks like the check_ro_pages() code differs for X86 and other
platforms and is missing a
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
around line 1289.
What is the correct way to fix this?

Thanks,
Manuel

_______________________________________________
tomoyo-users-en mailing list
tomoyo-users-en@lists.osdn.me
https://lists.osdn.me/mailman/listinfo/tomoyo-users-en

Reply via email to