]> git.pld-linux.org Git - packages/lin_tape.git/blob - insecure-perms.patch
- fix building with linux 4.10
[packages/lin_tape.git] / insecure-perms.patch
1 --- lin_tape-2.9.1/lin_tape_scsi_config.c~      2014-11-09 16:31:44.000000000 +0100
2 +++ lin_tape-2.9.1/lin_tape_scsi_config.c       2014-11-09 16:33:25.734671175 +0100
3 @@ -111,7 +111,7 @@
4  
5  } /* lin_tape_debug_store() */
6  
7 -DRIVER_ATTR(lin_tape_debug, 0666, lin_tape_debug_show, lin_tape_debug_store);
8 +DRIVER_ATTR(lin_tape_debug, 0664, lin_tape_debug_show, lin_tape_debug_store);
9  
10  /*******************************************************************************
11  *                                                                              *
12 @@ -166,7 +166,7 @@
13  
14  } /* auto_logging_store() */
15  
16 -DRIVER_ATTR(auto_logging, 0666, auto_logging_show, auto_logging_store);
17 +DRIVER_ATTR(auto_logging, 0664, auto_logging_show, auto_logging_store);
18  
19  /*******************************************************************************
20  *                                                                              *
21 @@ -220,7 +220,7 @@
22  
23  } /* petro_store() */
24  
25 -DRIVER_ATTR(petro, 0666, petro_show, petro_store);
26 +DRIVER_ATTR(petro, 0664, petro_show, petro_store);
27  
28  /*******************************************************************************
29  *                                                                              *
30 @@ -275,7 +275,7 @@
31  
32  } /* support_dio_store() */
33  
34 -DRIVER_ATTR(support_dio, 0666, support_dio_show, support_dio_store);
35 +DRIVER_ATTR(support_dio, 0664, support_dio_show, support_dio_store);
36  
37  /*******************************************************************************
38  *                                                                              *
39 @@ -356,7 +356,7 @@
40         return count;
41  } /* changer_open_reserve_show() */
42  
43 -DRIVER_ATTR(changer_open_reserve, 0666, changer_open_reserve_show,
44 +DRIVER_ATTR(changer_open_reserve, 0664, changer_open_reserve_show,
45         changer_open_reserve_store);
46  
47  /*******************************************************************************
48 @@ -527,7 +527,7 @@
49  
50  } /* disable_density_on_open_store() */
51  
52 -DRIVER_ATTR(disable_density_on_open, 0666, disable_density_on_open_show,
53 +DRIVER_ATTR(disable_density_on_open, 0664, disable_density_on_open_show,
54         disable_density_on_open_store);
55  
56  /*******************************************************************************
57 @@ -583,7 +583,7 @@
58  
59  } /* dynamic_attributes_store() */
60  
61 -DRIVER_ATTR(dynamic_attributes, 0666, dynamic_attributes_show,
62 +DRIVER_ATTR(dynamic_attributes, 0664, dynamic_attributes_show,
63         dynamic_attributes_store);
64  
65  /*******************************************************************************
66 @@ -639,7 +639,7 @@
67  
68  } /* lin_tape_as_sfmp_store() */
69  
70 -DRIVER_ATTR(lin_tape_as_sfmp, 0666, lin_tape_as_sfmp_show, lin_tape_as_sfmp_store);
71 +DRIVER_ATTR(lin_tape_as_sfmp, 0664, lin_tape_as_sfmp_show, lin_tape_as_sfmp_store);
72  /*******************************************************************************
73  *                                                                              *
74  *  NAME:  disable_auto_drive_dump_show                                         *
75 @@ -693,7 +693,7 @@
76  
77  } /* disable_auto_drive_dump_store() */
78  
79 -DRIVER_ATTR(disable_auto_drive_dump, 0666, disable_auto_drive_dump_show, disable_auto_drive_dump_store);
80 +DRIVER_ATTR(disable_auto_drive_dump, 0664, disable_auto_drive_dump_show, disable_auto_drive_dump_store);
81  
82  /*******************************************************************************
83  *                                                                              *
84 @@ -748,7 +748,7 @@
85  
86  } /* busy_retry_store() */
87  
88 -DRIVER_ATTR(busy_retry, 0666, busy_retry_show, busy_retry_store);
89 +DRIVER_ATTR(busy_retry, 0664, busy_retry_show, busy_retry_store);
90  /*******************************************************************************
91  *                                                                              *
92  *                           CLASS DEVICE ATTRIBUTES                            *
93 @@ -699,7 +699,7 @@
94  #else
95  static DEVICE_ATTR(sys_encryption_proxy,
96  #endif
97 -               0666,
98 +               0664,
99                 lin_tape_class_device_encryption_proxy_show,
100                 lin_tape_class_device_encryption_proxy_set);
101  
102 @@ -813,7 +813,7 @@
103  #else
104  static DEVICE_ATTR(sys_encryption_write,
105  #endif
106 -                       0666,
107 +                       0664,
108                         lin_tape_class_device_encryption_write_show,
109                         lin_tape_class_device_encryption_write_set);
110  
This page took 0.087038 seconds and 3 git commands to generate.