[packages/lin_tape] - fix insecure permission on /proc files (build fails on 3.17) - rel 1

baggins baggins at pld-linux.org
Sun Nov 9 16:37:10 CET 2014


commit f2747b6308eebbb38c16f0887446a00905aad078
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 9 16:36:19 2014 +0100

    - fix insecure permission on /proc files (build fails on 3.17)
    - rel 1

 insecure-perms.patch | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 lin_tape.spec        |  4 ++-
 2 files changed, 86 insertions(+), 1 deletion(-)
---
diff --git a/lin_tape.spec b/lin_tape.spec
index 472eca6..06eba4a 100644
--- a/lin_tape.spec
+++ b/lin_tape.spec
@@ -20,7 +20,7 @@ exit 1
 %define		kpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%kernel_pkg ; done)
 %define		bkpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%build_kernel_pkg ; done)
 
-%define		rel	0.1
+%define		rel	1
 %define		pname	lin_tape
 Summary:	IBM Tape SCSI Device Driver for Linux
 Name:		%{pname}%{_alt_kernel}
@@ -32,6 +32,7 @@ Source0:	%{pname}-%{version}.tgz
 # Source0-md5:	305d2922f942a73f0f0b30fa49b92dd5
 Patch0:		use-module-dir.patch
 Patch1:		linux-3.10.patch
+Patch2:		insecure-perms.patch
 # System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
 URL:		http://www.ibm.com/support/fixcentral/
 BuildRequires:	rpmbuild(macros) >= 1.678
@@ -82,6 +83,7 @@ compatible platforms.\
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %ifarch %ix86 ia64
 proc="Intel"
 %endif
diff --git a/insecure-perms.patch b/insecure-perms.patch
new file mode 100644
index 0000000..60c8ac3
--- /dev/null
+++ b/insecure-perms.patch
@@ -0,0 +1,83 @@
+--- lin_tape-2.9.1/lin_tape_scsi_config.c~	2014-11-09 16:31:44.000000000 +0100
++++ lin_tape-2.9.1/lin_tape_scsi_config.c	2014-11-09 16:33:25.734671175 +0100
+@@ -111,7 +111,7 @@
+ 
+ } /* lin_tape_debug_store() */
+ 
+-DRIVER_ATTR(lin_tape_debug, 0666, lin_tape_debug_show, lin_tape_debug_store);
++DRIVER_ATTR(lin_tape_debug, 0664, lin_tape_debug_show, lin_tape_debug_store);
+ 
+ /*******************************************************************************
+ *                                                                              *
+@@ -166,7 +166,7 @@
+ 
+ } /* auto_logging_store() */
+ 
+-DRIVER_ATTR(auto_logging, 0666, auto_logging_show, auto_logging_store);
++DRIVER_ATTR(auto_logging, 0664, auto_logging_show, auto_logging_store);
+ 
+ /*******************************************************************************
+ *                                                                              *
+@@ -220,7 +220,7 @@
+ 
+ } /* petro_store() */
+ 
+-DRIVER_ATTR(petro, 0666, petro_show, petro_store);
++DRIVER_ATTR(petro, 0664, petro_show, petro_store);
+ 
+ /*******************************************************************************
+ *                                                                              *
+@@ -275,7 +275,7 @@
+ 
+ } /* support_dio_store() */
+ 
+-DRIVER_ATTR(support_dio, 0666, support_dio_show, support_dio_store);
++DRIVER_ATTR(support_dio, 0664, support_dio_show, support_dio_store);
+ 
+ /*******************************************************************************
+ *                                                                              *
+@@ -356,7 +356,7 @@
+ 	return count;
+ } /* changer_open_reserve_show() */
+ 
+-DRIVER_ATTR(changer_open_reserve, 0666, changer_open_reserve_show,
++DRIVER_ATTR(changer_open_reserve, 0664, changer_open_reserve_show,
+ 	changer_open_reserve_store);
+ 
+ /*******************************************************************************
+@@ -527,7 +527,7 @@
+ 
+ } /* disable_density_on_open_store() */
+ 
+-DRIVER_ATTR(disable_density_on_open, 0666, disable_density_on_open_show,
++DRIVER_ATTR(disable_density_on_open, 0664, disable_density_on_open_show,
+ 	disable_density_on_open_store);
+ 
+ /*******************************************************************************
+@@ -583,7 +583,7 @@
+ 
+ } /* dynamic_attributes_store() */
+ 
+-DRIVER_ATTR(dynamic_attributes, 0666, dynamic_attributes_show,
++DRIVER_ATTR(dynamic_attributes, 0664, dynamic_attributes_show,
+ 	dynamic_attributes_store);
+ 
+ /*******************************************************************************
+@@ -699,7 +699,7 @@
+ #else
+ static DEVICE_ATTR(sys_encryption_proxy,
+ #endif
+-		0666,
++		0664,
+ 		lin_tape_class_device_encryption_proxy_show,
+ 		lin_tape_class_device_encryption_proxy_set);
+ 
+@@ -813,7 +813,7 @@
+ #else
+ static DEVICE_ATTR(sys_encryption_write,
+ #endif
+-			0666,
++			0664,
+ 			lin_tape_class_device_encryption_write_show,
+ 			lin_tape_class_device_encryption_write_set);
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lin_tape.git/commitdiff/f2747b6308eebbb38c16f0887446a00905aad078



More information about the pld-cvs-commit mailing list