summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-03-22 08:57:34 -0400
committerColin Walters (automation) <walters+githubbot@verbum.org>2016-03-22 13:09:52 +0000
commitfefeea889dc987ffc3053ae2b4ac6b7943b7ffda (patch)
treeccb3197922b43ec2203f6b0f1a7933359c8cb1a0
parent20be9e9df615423e98f630b69a6579ba4e77fe5b (diff)
downloadbubblewrap-fefeea889dc987ffc3053ae2b4ac6b7943b7ffda.tar.gz
utils: Squash const warnings for security contexts
It's surprising that `security_context_t` isn't const. Pull request: #27 Approved by: alexlarsson
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index dcd047a..02c1857 100644
--- a/utils.c
+++ b/utils.c
@@ -651,7 +651,7 @@ label_create_file (const char *file_label)
{
#ifdef HAVE_SELINUX
if (is_selinux_enabled () > 0 && file_label)
- return setfscreatecon (file_label);
+ return setfscreatecon ((security_context_t)file_label);
#endif
return 0;
}
@@ -661,7 +661,7 @@ label_exec (const char *exec_label)
{
#ifdef HAVE_SELINUX
if (is_selinux_enabled () > 0 && exec_label)
- return setexeccon (exec_label);
+ return setexeccon ((security_context_t)exec_label);
#endif
return 0;
}