lib/selinux-utils: cleanup function names

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-01-13 13:33:41 +01:00
parent 68f4aa2a2f
commit b5debf7105
4 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,6 @@
#define UTIL_LINUX_SELINUX_UTILS_H
extern access_vector_t get_access_vector(const char *tclass, const char *op);
extern int setupDefaultContext(char *orig_file);
extern int ul_setfscreatecon_from_file(char *orig_file);
#endif

View File

@ -13,7 +13,7 @@ access_vector_t get_access_vector(const char *tclass, const char *op)
return tc ? string_to_av_perm(tc, op) : 0;
}
int setupDefaultContext(char *orig_file)
int ul_setfscreatecon_from_file(char *orig_file)
{
if (is_selinux_enabled() > 0) {
char *scontext = NULL;

View File

@ -454,7 +454,7 @@ int main(int argc, char **argv)
ctl.username);
}
}
if (setupDefaultContext(_PATH_PASSWD))
if (ul_setfscreatecon_from_file(_PATH_PASSWD))
errx(EXIT_FAILURE,
_("can't set default context for %s"), _PATH_PASSWD);
}

View File

@ -302,7 +302,7 @@ int main(int argc, char **argv)
pw->pw_name);
}
}
if (setupDefaultContext(_PATH_PASSWD) != 0)
if (ul_setfscreatecon_from_file(_PATH_PASSWD) != 0)
errx(EXIT_FAILURE,
_("can't set default context for %s"), _PATH_PASSWD);
}