aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/include/selinux/selinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'libselinux/include/selinux/selinux.h')
-rw-r--r--libselinux/include/selinux/selinux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libselinux/include/selinux/selinux.h b/libselinux/include/selinux/selinux.h
index 8ea29d4b..00fb54d6 100644
--- a/libselinux/include/selinux/selinux.h
+++ b/libselinux/include/selinux/selinux.h
@@ -595,6 +595,10 @@ int selinuxfs_exists(void);
/* clear selinuxmnt variable and free allocated memory */
void fini_selinuxmnt(void);
+/* Set an appropriate security context based on the filename of a helper
+ * program, falling back to a new context with the specified type. */
+extern int setexecfilecon(const char *filename, const char *fallback_type);
+
/* Execute a helper for rpm in an appropriate security context. */
extern int rpm_execcon(unsigned int verified,
const char *filename,