libselinux/libselinux-rhat.patch
Daniel J Walsh 22298b4b74 Merged patch to drop support for CACHETRANS=0 config option from Steve
Grubb.
Merged patch to drop support for old /etc/sysconfig/selinux and
    /etc/security policy file layout from Steve Grubb.
2007-03-13 00:20:29 +00:00

36 lines
1.0 KiB
Diff

diff --exclude-from=exclude -N -u -r nsalibselinux/utils/getsebool.c libselinux-2.0.5/utils/getsebool.c
--- nsalibselinux/utils/getsebool.c 2006-11-16 17:15:17.000000000 -0500
+++ libselinux-2.0.5/utils/getsebool.c 2007-03-09 13:22:43.000000000 -0500
@@ -72,17 +72,23 @@
for (i = 0; i < len; i++) {
active = security_get_boolean_active(names[i]);
if (active < 0) {
- fprintf(stderr, "Error getting active value for %s\n",
- names[i]);
- rc = -1;
- goto out;
+ if (errno != EACCES) {
+ fprintf(stderr, "Error getting active value for %s\n",
+ names[i]);
+ rc = -1;
+ goto out;
+ }
+ continue;
}
pending = security_get_boolean_pending(names[i]);
if (pending < 0) {
- fprintf(stderr, "Error getting pending value for %s\n",
- names[i]);
- rc = -1;
- goto out;
+ if (errno != EACCES) {
+ fprintf(stderr, "Error getting pending value for %s\n",
+ names[i]);
+ rc = -1;
+ goto out;
+ }
+ continue;
}
if (pending != active) {
printf("%s --> %s pending: %s\n", names[i],