On Mon, Mar 26, 2012 at 11:33 AM, Laurent Bigonville <bigon@xxxxxxxxxx> wrote: > Hi, > > Only run setfiles if we have a R/W filesystem > > Laurent > > > From: Manoj Srivastava <srivasta@xxxxxxxxxx> > Date: Thu, 5 Jun 2008 22:07:22 -0500 > Subject: Only run setfiles if we found read-write filesystems to run it on > > Signed-off-by: Manoj Srivastava <srivasta@xxxxxxxxxx> > --- > scripts/fixfiles | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles > index 310fccf..0db4558 100755 > --- a/policycoreutils/scripts/fixfiles > +++ b/policycoreutils/scripts/fixfiles > @@ -234,7 +234,12 @@ then > done > FC=$TEMPFCFILE > fi > -${SETFILES} -q ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE > +if [ -n "${FILESYSTEMSRW}" ]; then > + echo "Relabeling `echo ${FILESYSTEMSRW}`" > + ${SETFILES} -q ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 | cat >> $LOGFILE > +else > + echo >&2 "fixfiles: No suitable file systems found" > +fi > rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-* $TEMPFCFILE > > UNDEFINED=`get_undefined_type` || exit $? This patch doesn't apply. I don't see a "SYSLOGFLAG" in the upstream tree. Is that something debian specific? -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.