[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/libselinux/devel libselinux-rhat.patch, 1.63, 1.64 libselinux.spec, 1.142, 1.143



Author: dwalsh

Update of /cvs/dist/rpms/libselinux/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv7164

Modified Files:
	libselinux-rhat.patch libselinux.spec 
Log Message:
* Tue Nov 8 2005 Dan Walsh <dwalsh redhat com> 1.27.19-2
- Don't strip mls context if selinux is not enabled.


libselinux-rhat.patch:
 matchpathcon.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/dist/rpms/libselinux/devel/libselinux-rhat.patch,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- libselinux-rhat.patch	26 Oct 2005 20:32:58 -0000	1.63
+++ libselinux-rhat.patch	8 Nov 2005 19:09:28 -0000	1.64
@@ -1,85 +1,12 @@
-diff --exclude-from=exclude -N -u -r nsalibselinux/include/selinux/selinux.h libselinux-1.27.14/include/selinux/selinux.h
---- nsalibselinux/include/selinux/selinux.h	2005-10-25 15:15:53.000000000 -0400
-+++ libselinux-1.27.14/include/selinux/selinux.h	2005-10-25 17:54:34.000000000 -0400
-@@ -359,6 +359,7 @@
- extern const char *selinux_customizable_types_path(void);
- extern const char *selinux_users_path(void);
- extern const char *selinux_usersconf_path(void);
-+extern const char *selinux_translations_path(void);
- extern const char *selinux_path(void);
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-1.27.19/src/matchpathcon.c
+--- nsalibselinux/src/matchpathcon.c	2005-10-06 09:20:38.000000000 -0400
++++ libselinux-1.27.19/src/matchpathcon.c	2005-11-08 14:04:09.000000000 -0500
+@@ -605,7 +605,7 @@
+ 	unsigned int lineno, pass, i, j, maxnspec;
+ 	spec_t *spec_copy=NULL;
+ 	int status=-1;
+-	int mls_enabled=is_selinux_mls_enabled();
++	int mls_enabled=is_selinux_mls_enabled() && ( is_selinux_enabled() > 0 );
  
- /* Check a permission in the passwd class.
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/file_path_suffixes.h libselinux-1.27.14/src/file_path_suffixes.h
---- nsalibselinux/src/file_path_suffixes.h	2005-10-25 15:15:53.000000000 -0400
-+++ libselinux-1.27.14/src/file_path_suffixes.h	2005-10-25 17:53:04.000000000 -0400
-@@ -13,3 +13,4 @@
- S_(CUSTOMIZABLE_TYPES, "/contexts/customizable_types")
- S_(USERS_DIR, "/users/")
- S_(SEUSERS, "/seusers")
-+S_(TRANSLATIONS, "/setrans.conf")
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinux_config.c libselinux-1.27.14/src/selinux_config.c
---- nsalibselinux/src/selinux_config.c	2005-10-25 15:15:53.000000000 -0400
-+++ libselinux-1.27.14/src/selinux_config.c	2005-10-26 15:58:29.000000000 -0400
-@@ -32,7 +32,8 @@
- #define CUSTOMIZABLE_TYPES    11
- #define USERS_DIR         12
- #define SEUSERS           13
--#define NEL               14
-+#define TRANSLATIONS      14
-+#define NEL               15
- 
- /* New layout is relative to SELINUXDIR/policytype. */
- static char *file_paths[NEL];
-@@ -192,7 +193,9 @@
- 	  }
- 	  free(line_buf);
- 	  fclose(fp);
--  }
-+  } 
-+  else 
-+	  return;
- 
-   for (i = 0; i < NEL; i++) {
- 	  len = rootlen + strlen(file_path_suffixes_data.str
-@@ -303,10 +306,16 @@
- const char *selinux_users_path() {
-   return get_path(USERS_DIR);
- }
-+hidden_def(selinux_users_path)
-+
- const char *selinux_usersconf_path() {
-   return get_path(SEUSERS);
- }
--
--hidden_def(selinux_users_path)
- hidden_def(selinux_usersconf_path)
- 
-+const char *selinux_translations_path() 
-+{
-+  return get_path(TRANSLATIONS);
-+}
-+hidden_def(selinux_translations_path)
-+
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinux_internal.h libselinux-1.27.14/src/selinux_internal.h
---- nsalibselinux/src/selinux_internal.h	2005-10-25 15:15:53.000000000 -0400
-+++ libselinux-1.27.14/src/selinux_internal.h	2005-10-25 18:01:47.000000000 -0400
-@@ -60,6 +60,7 @@
- hidden_proto(matchpathcon_init)
- hidden_proto(selinux_users_path)
- hidden_proto(selinux_usersconf_path);
-+hidden_proto(selinux_translations_path);
- hidden_proto(selinux_getenforcemode);
- 
- extern int context_translations hidden;
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/seusers.c libselinux-1.27.14/src/seusers.c
---- nsalibselinux/src/seusers.c	2005-10-17 13:42:38.000000000 -0400
-+++ libselinux-1.27.14/src/seusers.c	2005-10-26 16:13:53.000000000 -0400
-@@ -115,7 +115,7 @@
- 		if (!strcmp(username, name))
- 			break;
- 
--		if (!defaultseuser && !strcmp(username,"default")) {
-+		if (!defaultseuser && !strcmp(username,"__default__")) {
- 			free(username);
- 			defaultseuser = seuser;
- 			defaultlevel = level;
+ 	/* Open the specification file. */
+ 	if (!path)


Index: libselinux.spec
===================================================================
RCS file: /cvs/dist/rpms/libselinux/devel/libselinux.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- libselinux.spec	7 Nov 2005 14:50:45 -0000	1.142
+++ libselinux.spec	8 Nov 2005 19:09:28 -0000	1.143
@@ -2,10 +2,11 @@
 Summary: SELinux library and simple utilities
 Name: libselinux
 Version: 1.27.19
-Release: 1
+Release: 2
 License: Public domain (uncopyrighted)
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
+Patch : libselinux-rhat.patch
 
 Prereq: libsetrans 
 Requires: libsepol >= %{libsepolver}
@@ -38,6 +39,7 @@
 
 %prep
 %setup -q
+%patch -p1 -b .rhat 
 
 %build
 make CFLAGS="-g %{optflags}"
@@ -90,6 +92,9 @@
 %{_mandir}/man8/*
 
 %changelog
+* Tue Nov 8 2005 Dan Walsh <dwalsh redhat com> 1.27.19-2
+- Don't strip mls context if selinux is not enabled.
+
 * Mon Nov 7 2005 Dan Walsh <dwalsh redhat com> 1.27.19-1
 - Update to latest from NSA
 	* Merged seusers parser changes from Ivan Gyurdiev.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]