[apparmor] [patch] small fix for capability series

John Johansen john.johansen at canonical.com
Thu Mar 22 21:34:26 UTC 2012


On 03/22/2012 02:33 PM, Steve Beattie wrote:
> 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
> 
Acked-by: John Johansen <john.johansen at canonical.com>



More information about the AppArmor mailing list