summaryrefslogtreecommitdiff
path: root/gl/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-02 21:17:57 +0200
committerJim Meyering <meyering@redhat.com>2008-06-02 21:34:40 +0200
commit0647f3eb5aeaa783ce21ddee268367d2ba7248df (patch)
tree2bf46a5a1f19d69d2d4265256d7f8387ecbde60f /gl/lib
parent77b1bfc85cdf4ec01094ee31c8c85e2a83dea466 (diff)
downloadcoreutils-0647f3eb5aeaa783ce21ddee268367d2ba7248df.tar.xz
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. Reported by Ilya N. Golubev in <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13686>.
Diffstat (limited to 'gl/lib')
-rw-r--r--gl/lib/se-selinux.in.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/lib/se-selinux.in.h b/gl/lib/se-selinux.in.h
index 7be1e702a..ac421c38a 100644
--- a/gl/lib/se-selinux.in.h
+++ b/gl/lib/se-selinux.in.h
@@ -17,7 +17,8 @@ typedef unsigned short security_class_t;
# define security_context_t char*
# define is_selinux_enabled() 0
-static inline int getcon (security_context_t *con) { errno = ENOTSUP; return -1; }
+static inline int getcon (security_context_t *con)
+ { errno = ENOTSUP; return -1; }
static inline void freecon (security_context_t con) {}
@@ -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; }
static inline int getfilecon (char const *s, security_context_t *con)
{ errno = ENOTSUP; return -1; }
static inline int lgetfilecon (char const *s, security_context_t *con)