[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: breaks if no matchpathcon_init_prefix in selinux.h
From: |
Jim Meyering |
Subject: |
Re: breaks if no matchpathcon_init_prefix in selinux.h |
Date: |
Tue, 03 Jun 2008 07:48:18 +0200 |
Eric Blake <address@hidden> wrote:
> According to Jim Meyering on 6/2/2008 1:39 PM:
> | Subject: [PATCH] accommodate older SELinux which lacks
> matchpathcon_init_prefix
> |
> | * m4/jm-macros.m4: Check for matchpathcon_init_prefix.
> | * src/install.c [!HAVE_MATCHPATHCON_INIT_PREFIX]
> | (matchpathcon_init_prefix): Define away.
> | * gl/lib/se-selinux.in.h (matchpathcon_init_prefix): Define.
>
> | @@ -28,7 +29,9 @@ static inline int setfscreatecon (security_context_t con)
> | static inline int matchpathcon (char const *s, mode_t m,
> | security_context_t *con)
> | { errno = ENOTSUP; return -1; }
> | -
> | +static inline int matchpathcon_init_prefix (const char *path,
> | + const char *prefix)
> | + { errno = ENOTSUP; return -1; }
>
> This breaks things on cygwin, since it already occurred later in the file:
>
> In file included from selinux-at.h:17,
> ~ from selinux-at.c:21:
> ./selinux/selinux.h:59: error: redefinition of 'matchpathcon_init_prefix'
> ./selinux/selinux.h:34: error: previous definition of
> 'matchpathcon_init_prefix' was here
Thanks! Fixed. Need to slow down ;-)