2005-02-19 13:19:21 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.21.18/scripts/fixfiles
|
|
|
|
--- nsapolicycoreutils/scripts/fixfiles 2005-02-08 13:27:03.000000000 -0500
|
2005-02-22 21:42:14 +00:00
|
|
|
+++ policycoreutils-1.21.18/scripts/fixfiles 2005-02-21 10:25:46.000000000 -0500
|
2005-02-19 13:19:21 +00:00
|
|
|
@@ -78,8 +78,8 @@
|
2005-02-18 00:39:08 +00:00
|
|
|
esac; \
|
|
|
|
fi; \
|
|
|
|
done | \
|
2005-02-19 13:19:21 +00:00
|
|
|
- while read pattern ; do find $pattern -maxdepth 0 -print; done 2> /dev/null | \
|
|
|
|
- ${RESTORECON} -R $2 -v -e /root -e /home -e /tmp -e /var/tmp -e /dev -f -
|
|
|
|
+ while read pattern ; do find $pattern -fstype ext2 -fstype ext3 -fstype reiserfs -fstype xfs -print; done 2> /dev/null | \
|
|
|
|
+ ${RESTORECON} $2 -v -e /root -e /home -e /tmp -e /var/tmp -e /dev -f -
|
2005-02-18 00:39:08 +00:00
|
|
|
rm -f ${TEMPFILE}
|
|
|
|
fi
|
2005-02-19 13:19:21 +00:00
|
|
|
}
|
2005-02-22 21:42:14 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-1.21.18/scripts/genhomedircon
|
|
|
|
--- nsapolicycoreutils/scripts/genhomedircon 2005-02-17 14:28:23.000000000 -0500
|
|
|
|
+++ policycoreutils-1.21.18/scripts/genhomedircon 2005-02-21 10:25:46.000000000 -0500
|
|
|
|
@@ -203,7 +203,7 @@
|
|
|
|
def getHomeRootContext(self, homedir):
|
|
|
|
rc=commands.getstatusoutput("grep HOME_ROOT %s | sed -e \"s|^HOME_ROOT|%s|\"" % ( self.getHomeDirTemplate(), homedir))
|
|
|
|
if rc[0] == 0:
|
|
|
|
- return rc[1]
|
|
|
|
+ return rc[1]+"\n"
|
|
|
|
else:
|
|
|
|
errorExit(string.join("sed error ", rc[1]))
|
|
|
|
|
|
|
|
@@ -254,7 +254,7 @@
|
|
|
|
# Fill in HOME and ROLE for users that are defined
|
|
|
|
for u in users.keys():
|
|
|
|
ret += self.getHomeDirContext (u, users[u]["home"], users[u]["role"])
|
|
|
|
- return ret
|
|
|
|
+ return ret+"\n"
|
|
|
|
|
|
|
|
def checkExists(self, home):
|
|
|
|
return commands.getstatusoutput("grep -E '^%s[^[:alnum:]_-]' %s" % (home, self.getFileContextFile()))[0]
|
|
|
|
@@ -285,7 +285,6 @@
|
|
|
|
ret= self.heading()
|
|
|
|
for h in self.getHomeDirs():
|
|
|
|
ret += self.getHomeDirContext ("user_u" , h+'/[^/]*', "user")
|
|
|
|
- ret += "\n"
|
|
|
|
ret += self.getHomeRootContext(h)
|
|
|
|
ret += self.genHomeDirContext()
|
|
|
|
return ret
|