auto-import changelog data from policycoreutils-1.13.1-2.src.rpm
* Sat Jun 12 2004 Dan Walsh <dwalsh@redhat.com> 1.13.1-2 - Fix run_init to use policy formats * Wed Jun 02 2004 Dan Walsh <dwalsh@redhat.com> 1.13.1-1 - Update from NSA
This commit is contained in:
parent
af1869ce11
commit
06e15c6c4b
@ -1 +1 @@
|
|||||||
policycoreutils-1.13.tgz
|
policycoreutils-1.13.1.tgz
|
||||||
|
@ -1,67 +1,43 @@
|
|||||||
--- policycoreutils-1.13/scripts/fixfiles.rhat 2004-05-21 14:26:51.000000000 -0400
|
--- policycoreutils-1.13.1/run_init/run_init.c.rhat 2004-06-02 15:20:37.000000000 -0400
|
||||||
+++ policycoreutils-1.13/scripts/fixfiles 2004-05-25 15:06:03.586866792 -0400
|
+++ policycoreutils-1.13.1/run_init/run_init.c 2004-06-12 05:24:51.069687208 -0400
|
||||||
@@ -19,24 +19,42 @@
|
@@ -51,6 +51,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
#include <ctype.h>
|
||||||
# along with this program; if not, write to the Free Software
|
#include <libintl.h>
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
#include <locale.h>
|
||||||
|
+#include <limits.h>
|
||||||
|
#define _(msgid) gettext (msgid)
|
||||||
|
#ifndef PACKAGE
|
||||||
|
#define PACKAGE "policycoreutils" /* the name of this package lang translation */
|
||||||
|
@@ -60,7 +61,7 @@
|
||||||
|
where: <script> is the name of the init script to run,\n\
|
||||||
|
<args ...> are the arguments to that script.")
|
||||||
|
|
||||||
|
-#define CONTEXT_FILE "/etc/security/initrc_context"
|
||||||
|
+#define CONTEXT_FILE "initrc_context"
|
||||||
|
#ifdef USE_PAM
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
@@ -269,10 +270,11 @@
|
||||||
|
FILE* fp;
|
||||||
|
char buf[255], *bufp;
|
||||||
|
int buf_len;
|
||||||
-
|
-
|
||||||
-FC=/etc/security/selinux/file_contexts
|
- fp = fopen(CONTEXT_FILE, "r");
|
||||||
+SELINUXTYPE="targeted"
|
+ char context_file[PATH_MAX];
|
||||||
+. /etc/selinux/config
|
+ snprintf(context_file, sizeof(context_file)-1, "%s%s", selinux_default_context_path(), CONTEXT_FILE);
|
||||||
+FC=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts
|
+ fp = fopen(context_file, "r");
|
||||||
LOGFILE=`mktemp /var/tmp/fixfiles.XXXXXXXXXX` || exit 1
|
if (!fp) {
|
||||||
-echo "logging to $LOGFILE"
|
- fprintf(stderr, _("Could not open file %s\n"), CONTEXT_FILE);
|
||||||
SETFILES=/usr/sbin/setfiles
|
+ fprintf(stderr, _("Could not open file %s\n"), context_file);
|
||||||
FILESYSTEMS=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[23]| xfs).*rw/{print $3}';`
|
return -1;
|
||||||
checkLabels () {
|
|
||||||
+echo "logging to $LOGFILE"
|
|
||||||
${SETFILES} -v -n ${FC} ${FILESYSTEMS} 2>&1 | tee $LOGFILE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
restoreLabels () {
|
@@ -299,7 +301,7 @@
|
||||||
+echo "logging to $LOGFILE"
|
|
||||||
${SETFILES} -v ${FC} ${FILESYSTEMS} 2>&1 | tee $LOGFILE
|
|
||||||
}
|
}
|
||||||
|
out:
|
||||||
|
fclose(fp);
|
||||||
|
- fprintf(stderr, _("No context in file %s\n"), CONTEXT_FILE);
|
||||||
|
+ fprintf(stderr, _("No context in file %s\n"), context_file);
|
||||||
|
return -1;
|
||||||
|
|
||||||
relabel() {
|
} /* get_init_context() */
|
||||||
+echo "logging to $LOGFILE"
|
|
||||||
echo "Cleaning out /tmp"
|
|
||||||
rm -rf /tmp/.??* /tmp/*
|
|
||||||
-${SETFILES} ${FC} ${FILESYSTEMS} 2>&1 | tee $LOGFILE
|
|
||||||
+${SETFILES} -v ${FC} ${FILESYSTEMS} 2>&1 | tee $LOGFILE
|
|
||||||
+}
|
|
||||||
+relabelCheck() {
|
|
||||||
+echo -n "
|
|
||||||
+Files in the /tmp directory may be labeled incorrectly, this command
|
|
||||||
+can remove all files in /tmp. If you choose to remove files from /tmp,
|
|
||||||
+a reboot will be required after completion.
|
|
||||||
+
|
|
||||||
+Do you wish to clean out the /tmp directory [N]? "
|
|
||||||
+read answer
|
|
||||||
+if [ "$answer" = y -o "$answer" = Y ]; then
|
|
||||||
+ relabel
|
|
||||||
+else
|
|
||||||
+ restoreLabels
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
}
|
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
@@ -48,10 +66,15 @@
|
|
||||||
restoreLabels
|
|
||||||
;;
|
|
||||||
relabel)
|
|
||||||
- relabel
|
|
||||||
+ relabelCheck
|
|
||||||
;;
|
|
||||||
+ -F)
|
|
||||||
+ if "$1" = "relabel"; then
|
|
||||||
+ relabel
|
|
||||||
+ fi
|
|
||||||
+ ;;
|
|
||||||
*)
|
|
||||||
- echo $"Usage: $0 {check|restore|relabel}"
|
|
||||||
+ echo $"Usage: $0 {check|restore|[-F] relabel}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
exit $?
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: SELinux policy core utilities.
|
Summary: SELinux policy core utilities.
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 1.13
|
Version: 1.13.1
|
||||||
Release: 3
|
Release: 2
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
||||||
@ -30,7 +30,6 @@ context.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .rhat
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make all
|
make all
|
||||||
@ -72,6 +71,12 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 12 2004 Dan Walsh <dwalsh@redhat.com> 1.13.1-2
|
||||||
|
- Fix run_init to use policy formats
|
||||||
|
|
||||||
|
* Wed Jun 2 2004 Dan Walsh <dwalsh@redhat.com> 1.13.1-1
|
||||||
|
- Update from NSA
|
||||||
|
|
||||||
* Tue May 25 2004 Dan Walsh <dwalsh@redhat.com> 1.13-3
|
* Tue May 25 2004 Dan Walsh <dwalsh@redhat.com> 1.13-3
|
||||||
- Change location of file_context file
|
- Change location of file_context file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user