]> git.pld-linux.org Git - packages/libuser.git/blame - libuser-selinux.patch
- release 3 (by relup.sh)
[packages/libuser.git] / libuser-selinux.patch
CommitLineData
b72e9819
PZ
1? build
2Index: ChangeLog
3===================================================================
4RCS file: /usr/local/CVS/libuser/ChangeLog,v
5retrieving revision 1.143
6retrieving revision 1.144
7diff -u -r1.143 -r1.144
8--- ChangeLog 25 Oct 2007 06:36:56 -0000 1.143
9+++ ChangeLog 30 Oct 2007 22:23:33 -0000 1.144
10@@ -1,3 +1,8 @@
11+2007-10-30 Miloslav Trmač <mitr@redhat.com>
12+
13+ * lib/util.c (lu_util_fscreate_restore) [WITH_SELINUX]: Fix use of
14+ uninitialized data when SELinux is disabled.
15+
16 2007-10-25 Miloslav Trmač <mitr@redhat.com>
17
18 * configure.in: Version 0.56.6.
19Index: lib/util.c
20===================================================================
21RCS file: /usr/local/CVS/libuser/lib/util.c,v
22retrieving revision 1.16
23retrieving revision 1.17
24diff -u -r1.16 -r1.17
25--- lib/util.c 25 Oct 2007 05:48:04 -0000 1.16
26+++ lib/util.c 30 Oct 2007 22:23:33 -0000 1.17
27@@ -613,10 +613,11 @@
28 void
29 lu_util_fscreate_restore(security_context_t ctx)
30 {
31- /* Don't check is_selinux_enabled(), we ignore errors anyway */
32- (void)setfscreatecon(ctx);
33- if (ctx)
34- freecon(ctx);
35+ if (is_selinux_enabled() > 0) {
36+ (void)setfscreatecon(ctx);
37+ if (ctx)
38+ freecon(ctx);
39+ }
40 }
41
42 /* Set fscreate context from context of file. */
This page took 0.087094 seconds and 4 git commands to generate.