[Pkg-shadow-commits] r1516 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Thu Dec 27 23:32:47 UTC 2007
Author: nekral-guest
Date: 2007-12-27 23:32:47 +0000 (Thu, 27 Dec 2007)
New Revision: 1516
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/copydir.c
Log:
Document selinux_file_context.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2007-12-27 23:30:36 UTC (rev 1515)
+++ upstream/trunk/ChangeLog 2007-12-27 23:32:47 UTC (rev 1516)
@@ -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 at centraliens.net>
Modified: upstream/trunk/libmisc/copydir.c
===================================================================
--- upstream/trunk/libmisc/copydir.c 2007-12-27 23:30:36 UTC (rev 1515)
+++ upstream/trunk/libmisc/copydir.c 2007-12-27 23:32:47 UTC (rev 1516)
@@ -74,6 +74,14 @@
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;
More information about the Pkg-shadow-commits
mailing list