Document selinux_file_context.

This commit is contained in:
nekral-guest 2007-12-27 23:32:47 +00:00
parent cc4b37f65c
commit 6bc43fea06
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@
to -1, instead of incrementing it, and checking if not nul at the
end.
* libmisc/copydir.c: Avoid assignment in comparisons.
* libmisc/copydir.c: Document selinux_file_context.
2007-12-27 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -74,6 +74,14 @@ static int copy_file (const char *src, const char *dst,
uid_t uid, gid_t gid);
#ifdef WITH_SELINUX
/*
* selinux_file_context - Set the security context before any file or
* directory creation.
*
* selinux_file_context () should be called before any creation of file,
* symlink, directory, ...
*
*/
static int selinux_file_context (const char *dst_name)
{
security_context_t scontext = NULL;