[apparmor] [PATCH][AppArmor 2.7] Fix missing pid_t dependency in apparmor.h
Kees Cook
kees.cook at canonical.com
Mon Aug 22 20:20:00 UTC 2011
Ah, good catch!
Acked-by: Kees Cook <kees.cook at canonical.com>
On Mon, Aug 22, 2011 at 01:13:41PM -0700, John Johansen wrote:
> The define for pid_t is missing in apparmor.h so that if it is included
> in programs that don't also include sys/types.h the compile will break.
>
> Signed-off-by: John Johansen <john.johansen at canonical.com>
> ---
> libraries/libapparmor/src/apparmor.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/libraries/libapparmor/src/apparmor.h b/libraries/libapparmor/src/apparmor.h
> index fbfaae0..c93bee8 100644
> --- a/libraries/libapparmor/src/apparmor.h
> +++ b/libraries/libapparmor/src/apparmor.h
> @@ -18,6 +18,8 @@
> #ifndef _SYS_APPARMOR_H_
> #define _SYS_APPARMOR_H 1
>
> +#include <sys/types.h>
> +
> __BEGIN_DECLS
>
> /* Prototypes for apparmor state queries */
> --
> 1.7.5.4
>
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
--
Kees Cook
Ubuntu Security Team
More information about the AppArmor
mailing list