Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: apparmor (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1729634
Title:
Linker warnings for apparmor.o
Status in apparmor package in Ubuntu:
Confirmed
Bug description:
Building the Ubuntu kernel at version 4.4.0-97.120 or 4.4.0-98.121
gives warnings when linking apparmor.o such as:
LD security/apparmor/apparmor.o
WARNING: security/apparmor/apparmor.o(.text+0x1087b): Section mismatch in
reference from the function param_get_mode() to the variable
.init.data:apparmor_initialized
(next build fault)
The function param_get_mode() references
the variable __initdata apparmor_initialized.
This is often because param_get_mode lacks a __initdata
annotation or the annotation of apparmor_initialized is wrong.
I believe this is because the __initdata annotation was removed from
security/apparmor/lsm.c but not from security/apparmor/include/lib.h
The following patch cleans the compilation warnings, but may not be
the correct fix:
--- security/apparmor/include/lib.h.orig 2017-11-02 14:43:59.903230945
+0000
+++ security/apparmor/include/lib.h 2017-11-02 14:44:57.992635353 +0000
@@ -56,7 +56,7 @@
} while (0)
/* Flag indicating whether initialization completed */
-extern int apparmor_initialized __initdata;
+extern int apparmor_initialized;
/* fn's in lib */
char *aa_split_fqname(char *args, char **ns_name);
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1729634/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp