bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: breaks if no matchpathcon_init_prefix in selinux.h


From: Eric Blake
Subject: Re: breaks if no matchpathcon_init_prefix in selinux.h
Date: Mon, 02 Jun 2008 21:59:26 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhEwZ4ACgkQ84KuGfSFAYC2tACfchuhHBantBtyF8i0Yvyuw9T+
VagAniHigyDGNJZLhAaLZkWBes6diLra
=+5Mf
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]