Lines Matching +full:a +full:- +full:z0 +full:- +full:9
1 # SPDX-License-Identifier: GPL-2.0
4 obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o
6 apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \
9 apparmor-$(CONFIG_SECURITY_APPARMOR_HASH) += crypto.o
11 clean-files := capability_names.h rlim_names.h net_names.h
13 # Build a lower case string table of address family names
26 quiet_cmd_make-af = GEN $@
27 cmd_make-af = echo "static const char *address_family_names[] = {" > $@ ;\
28 sed $< >>$@ -r -n -e "/AF_MAX/d" -e "/AF_LOCAL/d" -e "/AF_ROUTE/d" -e \
29 's/^\#define[ \t]+AF_([A-Z0-9_]+)[ \t]+([0-9]+)(.*)/[\2] = "\L\1",/p';\
32 sed -r -n -e "/AF_MAX/d" -e "/AF_LOCAL/d" -e "/AF_ROUTE/d" -e \
33 's/^\#define[ \t]+AF_([A-Z0-9_]+)[ \t]+([0-9]+)(.*)/\L\1/p'\
34 $< | tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
36 # Build a lower case string table of sock type names
41 quiet_cmd_make-sock = GEN $@
42 cmd_make-sock = echo "static const char *sock_type_names[] = {" >> $@ ;\
43 sed $^ >>$@ -r -n \
44 -e 's/^\tSOCK_([A-Z0-9_]+)[\t]+=[ \t]+([0-9]+)(.*)/[\2] = "\L\1",/p';\
47 # Build a lower case string table of capability names
52 quiet_cmd_make-caps = GEN $@
53 cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\
54 sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \
55 -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\
58 sed $< -r -n -e '/CAP_FS_MASK/d' \
59 -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/\L\1/p' | \
60 tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
63 # Build a lower case string table of rlimit names.
69 # and build a second integer table (with the second sed cmd), that maps
70 # RLIMIT defines to the order defined in asm-generic/resource.h This is
84 quiet_cmd_make-rlim = GEN $@
85 cmd_make-rlim = echo "static const char *const rlim_names[RLIM_NLIMITS] = {" \
87 sed $< >> $@ -r -n \
88 -e 's/^\# ?define[ \t]+(RLIMIT_([A-Z0-9_]+)).*/[\1] = "\L\2",/p';\
91 sed -r -n "s/^\# ?define[ \t]+(RLIMIT_[A-Z0-9_]+).*/\1,/p" $< >> $@ ;\
94 sed -r -n 's/^\# ?define[ \t]+RLIMIT_([A-Z0-9_]+).*/\L\1/p' $< | \
95 tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
102 $(call cmd,make-caps)
103 $(obj)/rlim_names.h : $(srctree)/include/uapi/asm-generic/resource.h \
105 $(call cmd,make-rlim)
109 $(call cmd,make-af)
110 $(call cmd,make-sock)