Commit Graph

6 Commits

Author SHA1 Message Date
Sami Kerola fd2940f58d selinux_utils: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-11-29 17:58:00 +01:00
Karel Zak 85d7a416f1 chrt: [selinux] fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-01 16:23:53 +02:00
Karel Zak 4ba66edf82 selinux: is_selinux_enabled() returns 0, 1 and -1
Unfortunately, the current libselinux implementation of
is_selinux_enabled() returns -1 on error. This behavior is
undocumented.

The proper solution is to use "if (is_selinux_enabled() > 0)".

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-07-01 14:32:53 +02:00
Karel Zak 1afa7ab49d chfn: fix compiler warnings in selinux stuff
selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20 15:06:52 +01:00
Karel Zak 48d7b13a1e Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Karel Zak d03dd60840 Imported from util-linux-2.12a tarball. 2006-12-07 00:26:14 +01:00