]> granicus.if.org Git - shadow/commitdiff
Document selinux_file_context.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 27 Dec 2007 23:32:47 +0000 (23:32 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 27 Dec 2007 23:32:47 +0000 (23:32 +0000)
ChangeLog
libmisc/copydir.c

index e37374221d7b6e5fb82c4505c91d6b9e8a25700b..4a297728e96b21640d5c4c72e5b7661f2a13be73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
index dbdf3e858e5f6c300aca2a959de8353446d3c56d..6b8bdf7121c6eb6254870bacc74e93a058e9b68c 100644 (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;