Document selinux_file_context.
This commit is contained in:
parent
cc4b37f65c
commit
6bc43fea06
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user