Skip to contentSkip to conversation

Small fixes for chcat in policycoreutils

PATCH Daniel J Walsh 2 participants 2 messages Nov 3, 2009 – Nov 27, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

chcat can generate oserror exception so need to catch and add chcat to the Makefile.

policycoreutils/scripts/Makefile +1 -1
index d6d9069..53b65b6 100644
@@ -5,7 +5,7 @@ SBINDIR ?= $(PREFIX)/sbin
 MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
 
-all: fixfiles genhomedircon
+all: fixfiles genhomedircon chcat
 
 install: all
 	-mkdir -p $(BINDIR)
policycoreutils/scripts/chcat +2 -0
index 235ad82..4038a99 100755
@@ -435,6 +435,8 @@ if __name__ == '__main__':
                     continue
     except ValueError, e:
         error(e)
+    except OSError, e:
+        error(e)
     
     sys.exit(errors)
     
#1 lore raw
Quoted 1 line · Daniel J Walsh

chcat can generate oserror exception so need to catch and add chcat to the Makefile.

Merged in policycoreutils 2.0.78

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.