Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 622552
Collapse All | Expand All

(-)a/security/apparmor/Makefile (-2 / +2 lines)
Lines 20-26 cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\ Link Here
20
	sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \
20
	sed $< >>$@ -r -n -e '/CAP_FS_MASK/d' \
21
	-e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\
21
	-e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/[\2] = "\L\1",/p';\
22
	echo "};" >> $@ ;\
22
	echo "};" >> $@ ;\
23
	echo -n '\#define AA_FS_CAPS_MASK "' >> $@ ;\
23
	printf '%s' '\#define AA_FS_CAPS_MASK "' >> $@ ;\
24
	sed $< -r -n -e '/CAP_FS_MASK/d' \
24
	sed $< -r -n -e '/CAP_FS_MASK/d' \
25
	    -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/\L\1/p' | \
25
	    -e 's/^\#define[ \t]+CAP_([A-Z0-9_]+)[ \t]+([0-9]+)/\L\1/p' | \
26
	     tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
26
	     tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
Lines 56-62 cmd_make-rlim = echo "static const char *const rlim_names[RLIM_NLIMITS] = {" \ Link Here
56
	echo "static const int rlim_map[RLIM_NLIMITS] = {" >> $@ ;\
56
	echo "static const int rlim_map[RLIM_NLIMITS] = {" >> $@ ;\
57
	sed -r -n "s/^\# ?define[ \t]+(RLIMIT_[A-Z0-9_]+).*/\1,/p" $< >> $@ ;\
57
	sed -r -n "s/^\# ?define[ \t]+(RLIMIT_[A-Z0-9_]+).*/\1,/p" $< >> $@ ;\
58
	echo "};" >> $@ ; \
58
	echo "};" >> $@ ; \
59
	echo -n '\#define AA_FS_RLIMIT_MASK "' >> $@ ;\
59
	printf '%s' '\#define AA_FS_RLIMIT_MASK "' >> $@ ;\
60
	sed -r -n 's/^\# ?define[ \t]+RLIMIT_([A-Z0-9_]+).*/\L\1/p' $< | \
60
	sed -r -n 's/^\# ?define[ \t]+RLIMIT_([A-Z0-9_]+).*/\L\1/p' $< | \
61
	    tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@
61
	    tr '\n' ' ' | sed -e 's/ $$/"\n/' >> $@

Return to bug 622552