[apparmor] [patch] small fix for capability series

Steve Beattie steve at nxnw.org
Thu Mar 22 21:33:12 UTC 2012


When creating the prior abstraction patches, I mistakenly converted
/usr/include/linux/capability.h to <sys/capability.h>. This patch
corrects the issue.

=== modified file 'common/Make.rules'
--- common/Make.rules	2012-03-22 20:19:27 +0000
+++ common/Make.rules	2012-03-22 21:29:40 +0000
@@ -157,7 +157,7 @@
 # =====================
 
 # emits defined capabilities in a simple list, e.g. "CAP_NAME CAP_NAME2"
-CAPABILITIES=$(shell echo "\#include <sys/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | sort)
+CAPABILITIES=$(shell echo "\#include <linux/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | sort)
 
 .PHONY: list_capabilities
 list_capabilities: /usr/include/linux/capability.h


-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20120322/57b99bdf/attachment.pgp>


More information about the AppArmor mailing list