diff options
author | Colin Walters <walters@verbum.org> | 2016-03-22 08:57:34 -0400 |
---|---|---|
committer | Colin Walters (automation) <walters+githubbot@verbum.org> | 2016-03-22 13:09:52 +0000 |
commit | fefeea889dc987ffc3053ae2b4ac6b7943b7ffda (patch) | |
tree | ccb3197922b43ec2203f6b0f1a7933359c8cb1a0 | |
parent | 20be9e9df615423e98f630b69a6579ba4e77fe5b (diff) | |
download | bubblewrap-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |