--- /dev/null
+--- 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);
+
%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}
# 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
%setup -q -n %{pname}-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%ifarch %ix86 ia64
proc="Intel"
%endif