mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
set the module version flag
This commit is contained in:
@@ -2,12 +2,21 @@
|
||||
#
|
||||
# kernel build Makefile is the Kbuild file
|
||||
|
||||
REPO_VERSION := $(shell if [ -x /usr/bin/svn ] ; then \
|
||||
/usr/bin/svn info . 2> /dev/null | grep "^Last Changed Rev:" | sed "s/^Last Changed Rev: //" ; \
|
||||
fi)
|
||||
|
||||
ifeq ("${REPO_VERSION}", "")
|
||||
REPO_VERSION := "unknown"
|
||||
endif
|
||||
|
||||
KERNELVER := $(shell uname -r)
|
||||
|
||||
KERNELDIR := /lib/modules/${KERNELVER}/build
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` modules CONFIG_SECURITY_APPARMOR=m
|
||||
$(MAKE) -C $(KERNELDIR) M=`pwd` modules CONFIG_SECURITY_APPARMOR=m \
|
||||
APPARMOR_VER=${REPO_VERSION}
|
||||
mv apparmor.ko apparmor-${KERNELVER}.ko
|
||||
mv match/aamatch_pcre.ko aamatch_pcre-${KERNELVER}.ko
|
||||
|
||||
|
@@ -898,6 +898,7 @@ static void __exit apparmor_exit(void)
|
||||
module_init(apparmor_init);
|
||||
module_exit(apparmor_exit);
|
||||
|
||||
MODULE_VERSION(APPARMOR_VERSION);
|
||||
MODULE_DESCRIPTION("AppArmor process confinement");
|
||||
MODULE_AUTHOR("Tony Jones <tonyj@suse.de>");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Reference in New Issue
Block a user