Makefile (e3900e74f26fc924c8e9e2a922bd40369b0bb517) | Makefile (84f1f787421cd83bb7dfb34d584586f6a5fe7baa) |
---|---|
1# Makefile for AppArmor Linux Security Module 2# 3obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o 4 5apparmor-y := apparmorfs.o audit.o capability.o context.o ipc.o lib.o match.o \ 6 path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \ 7 resource.o sid.o file.o 8 --- 4 unchanged lines hidden (view full) --- 13# Transforms lines from 14# #define CAP_DAC_OVERRIDE 1 15# to 16# [1] = "dac_override", 17quiet_cmd_make-caps = GEN $@ 18cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\ 19 sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \ 20 -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\ | 1# Makefile for AppArmor Linux Security Module 2# 3obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o 4 5apparmor-y := apparmorfs.o audit.o capability.o context.o ipc.o lib.o match.o \ 6 path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \ 7 resource.o sid.o file.o 8 --- 4 unchanged lines hidden (view full) --- 13# Transforms lines from 14# #define CAP_DAC_OVERRIDE 1 15# to 16# [1] = "dac_override", 17quiet_cmd_make-caps = GEN $@ 18cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\ 19 sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \ 20 -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\ |
21 echo "};" >> $@ | 21 echo "};" >> $@ ;\ 22 echo -n '\#define AA_FS_CAPS_MASK "' >> $@ ;\ 23 sed $< -r -n -e '/CAP_FS_MASK/d' \ 24 -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/\L\1/p' | \ 25 tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@ |
22 23 24# Build a lower case string table of rlimit names. 25# Transforms lines from 26# #define RLIMIT_STACK 3 /* max stack size */ 27# to 28# [RLIMIT_STACK] = "stack", 29# --- 36 unchanged lines hidden --- | 26 27 28# Build a lower case string table of rlimit names. 29# Transforms lines from 30# #define RLIMIT_STACK 3 /* max stack size */ 31# to 32# [RLIMIT_STACK] = "stack", 33# --- 36 unchanged lines hidden --- |