2
0
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:
John Johansen
2006-10-10 19:13:41 +00:00
parent 201887e519
commit 5a2e54261a
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -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");