1
0
mirror of https://github.com/projectatomic/bubblewrap.git synced 2026-02-06 09:46:09 +01:00

utils: Squash const warnings for security contexts

It's surprising that `security_context_t` isn't const.

Pull request: #27
Approved by: alexlarsson
This commit is contained in:
Colin Walters
2016-03-22 08:57:34 -04:00
committed by Colin Walters (automation)
parent 20be9e9df6
commit fefeea889d

View File

@@ -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;
}