summaryrefslogtreecommitdiff
path: root/src/selinux.h
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-10-18 22:09:19 +0100
committerPádraig Brady <P@draigBrady.com>2015-10-19 10:25:14 +0100
commitb6757e83c401d38e747f99314e45840907a4f60a (patch)
tree7bfbabe8d3759846d188ed1fa743a154bbc3b0db /src/selinux.h
parent66504d41aa849746ec0f4f7f2dfa88f098c45f48 (diff)
downloadcoreutils-b6757e83c401d38e747f99314e45840907a4f60a.tar.xz
maint: fixes to support improved sc_tight_scope
The gnulib provided sc_tight_scope target was ineffective, as it was checking against an invalid blank regular expression, and thus ignoring any extern function issues. This is now fixed up in gnulib, and so we need to fix our scoping issues before the next gnulib update. * cfg.mk: Setup and document the tight_scope config variables appropriately. * src/selinux.h: Since declared in *_SOURCES, use the two line form for the extern function declarations. * src/set-fields.h: Add the extern declarations, and since declared in noinst_HEADERS use the single line form.
Diffstat (limited to 'src/selinux.h')
-rw-r--r--src/selinux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selinux.h b/src/selinux.h
index f9b327682..ed060f9de 100644
--- a/src/selinux.h
+++ b/src/selinux.h
@@ -29,8 +29,10 @@ ignorable_ctx_err (int err)
# if HAVE_SELINUX_SELINUX_H
-extern bool restorecon (char const *path, bool recurse, bool preserve);
-extern int defaultcon (char const *path, mode_t mode);
+extern bool
+restorecon (char const *path, bool recurse, bool preserve);
+extern int
+defaultcon (char const *path, mode_t mode);
# else