Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: fixfiles fixes Date: Mon, 08 Sep 2008 15:03:35 -0400 [root@misterfreeze selinux]# cat patch --- nsapolicycoreutils/scripts/fixfiles 2008-08-28 09:34:24.000000000 -0400 +++ policycoreutils-2.0.55/scripts/fixfiles 2008-09-08 14:08:57.000000000 -0400 @@ -139,14 +139,14 @@ LogReadOnly ${SETFILES} -q ${OUTFILES} ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 >> $LOGFILE rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-* -find /tmp -context "*:file_t*" -exec chcon -t tmp_t {} \; -find /var/tmp -context "*:file_t*" -exec chcon -t tmp_t {} \; +find /tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \; +find /var/tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \; exit $? } fullrelabel() { logit "Cleaning out /tmp" - rm -rf /tmp/.??* /tmp/* + find /tmp/ -mindepth 1 -print0 | xargs -0 /bin/rm -f LogReadOnly restore } Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
parent
107d46ff3e
commit
95e4b5c3cc
1 changed files with 3 additions and 3 deletions
|
@ -139,14 +139,14 @@ fi
|
||||||
LogReadOnly
|
LogReadOnly
|
||||||
${SETFILES} -q ${OUTFILES} ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 >> $LOGFILE
|
${SETFILES} -q ${OUTFILES} ${SYSLOGFLAG} ${FORCEFLAG} $* ${FC} ${FILESYSTEMSRW} 2>&1 >> $LOGFILE
|
||||||
rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-*
|
rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-*
|
||||||
find /tmp -context "*:file_t*" -exec chcon -t tmp_t {} \;
|
find /tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \;
|
||||||
find /var/tmp -context "*:file_t*" -exec chcon -t tmp_t {} \;
|
find /var/tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \;
|
||||||
exit $?
|
exit $?
|
||||||
}
|
}
|
||||||
|
|
||||||
fullrelabel() {
|
fullrelabel() {
|
||||||
logit "Cleaning out /tmp"
|
logit "Cleaning out /tmp"
|
||||||
rm -rf /tmp/.??* /tmp/*
|
find /tmp/ -mindepth 1 -print0 | xargs -0 /bin/rm -f
|
||||||
LogReadOnly
|
LogReadOnly
|
||||||
restore
|
restore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue