* Mon Apr 11 2005 Dan Walsh <dwalsh@redhat.com> 1.23.4-2
- Add -f qualifier for anaconda. Basically forces load even if selinux not enabled
This commit is contained in:
parent
feb45d8c20
commit
f9d71f4c01
@ -1,27 +1,41 @@
|
|||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/load_policy/load_policy.c policycoreutils-1.23.3/load_policy/load_policy.c
|
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/load_policy/load_policy.c policycoreutils-1.23.4/load_policy/load_policy.c
|
||||||
--- nsapolicycoreutils/load_policy/load_policy.c 2005-03-01 22:58:51.000000000 -0500
|
--- nsapolicycoreutils/load_policy/load_policy.c 2005-04-11 16:00:46.000000000 -0400
|
||||||
+++ policycoreutils-1.23.3/load_policy/load_policy.c 2005-04-07 17:01:19.000000000 -0400
|
+++ policycoreutils-1.23.4/load_policy/load_policy.c 2005-04-11 16:34:52.000000000 -0400
|
||||||
@@ -42,6 +42,11 @@
|
@@ -33,6 +33,7 @@
|
||||||
|
unsigned len, i;
|
||||||
|
size_t data_size;
|
||||||
|
struct stat sb;
|
||||||
|
+ int force=0;
|
||||||
|
void *map, *data;
|
||||||
|
char *polpath, *boolpath = NULL, **names;
|
||||||
|
|
||||||
|
@@ -42,13 +43,11 @@
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+ if (is_selinux_enabled() <= 0 ) {
|
- if (is_selinux_enabled() <= 0 ) {
|
||||||
+ fprintf( stderr, "%s: Requires an enabled SELinux kernel.\n" );
|
- fprintf( stderr, "%s: Requires an enabled SELinux kernel.\n", argv[0] );
|
||||||
|
- exit(1);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- while ((opt = getopt(argc, argv, "qb")) > 0) {
|
||||||
|
+ while ((opt = getopt(argc, argv, "fqb")) > 0) {
|
||||||
|
switch (opt) {
|
||||||
|
+ case 'f':
|
||||||
|
+ force = 1;
|
||||||
|
+ break;
|
||||||
|
case 'b':
|
||||||
|
setbools = 1;
|
||||||
|
break;
|
||||||
|
@@ -61,6 +60,11 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (force == 0 && is_selinux_enabled() <= 0 ) {
|
||||||
|
+ fprintf( stderr, "%s: Requires an enabled SELinux kernel.\n", argv[0] );
|
||||||
+ exit(1);
|
+ exit(1);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
while ((opt = getopt(argc, argv, "qb")) > 0) {
|
if ((argc-optind) != 1 && (argc-optind) != 2) {
|
||||||
switch (opt) {
|
usage(argv[0]);
|
||||||
case 'b':
|
}
|
||||||
diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecon/restorecon.c policycoreutils-1.23.3/restorecon/restorecon.c
|
|
||||||
--- nsapolicycoreutils/restorecon/restorecon.c 2005-03-08 14:03:04.000000000 -0500
|
|
||||||
+++ policycoreutils-1.23.3/restorecon/restorecon.c 2005-04-07 16:56:57.000000000 -0400
|
|
||||||
@@ -211,7 +211,7 @@
|
|
||||||
} else
|
|
||||||
if (verbose &&
|
|
||||||
(verbose > 1 || !user_only_changed))
|
|
||||||
- fprintf(stderr,"%s reset context %s:%s->%s\n",
|
|
||||||
+ fprintf(stderr,"%s reset %s context %s->%s\n",
|
|
||||||
progname, filename, (retcontext >= 0 ? prev_context : ""), scontext);
|
|
||||||
}
|
|
||||||
if (verbose > 1 && customizable>0) {
|
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
Summary: SELinux policy core utilities.
|
Summary: SELinux policy core utilities.
|
||||||
Name: policycoreutils
|
Name: policycoreutils
|
||||||
Version: 1.23.4
|
Version: 1.23.4
|
||||||
Release: 1
|
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
|
||||||
|
Patch: policycoreutils-rhat.patch
|
||||||
|
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
BuildRequires: libselinux-devel >= %{libselinuxver} pam-devel libsepol-devel >= %{libsepolver}
|
BuildRequires: libselinux-devel >= %{libselinuxver} pam-devel libsepol-devel >= %{libsepolver}
|
||||||
@ -33,6 +34,8 @@ context.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1 -b .rhat
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="%{optflags}" all
|
make CFLAGS="%{optflags}" all
|
||||||
|
|
||||||
@ -79,6 +82,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
%config(noreplace) %{_sysconfdir}/sestatus.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 11 2005 Dan Walsh <dwalsh@redhat.com> 1.23.4-2
|
||||||
|
- Add -f qualifier for anaconda. Basically forces load even if selinux not enabled
|
||||||
|
|
||||||
* Mon Apr 11 2005 Dan Walsh <dwalsh@redhat.com> 1.23.4-1
|
* Mon Apr 11 2005 Dan Walsh <dwalsh@redhat.com> 1.23.4-1
|
||||||
- Update to version from NSA
|
- Update to version from NSA
|
||||||
* Merged load_policy is_selinux_enabled patch from Dan Walsh.
|
* Merged load_policy is_selinux_enabled patch from Dan Walsh.
|
||||||
|
Loading…
Reference in New Issue
Block a user