Input: aiptek - tighten up permissions on sysfs attributes

Sysfs attributes affecting device behavior should not be, by default,
world-writeable. If distributions want to allow console users access
these attributes they need to employ udev and friends to adjust
permissions as needed.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

+14 -14
+14 -14
drivers/input/tablet/aiptek.c
··· 1097 } 1098 1099 static DEVICE_ATTR(pointer_mode, 1100 - S_IRUGO | S_IWUGO, 1101 show_tabletPointerMode, store_tabletPointerMode); 1102 1103 /*********************************************************************** ··· 1134 } 1135 1136 static DEVICE_ATTR(coordinate_mode, 1137 - S_IRUGO | S_IWUGO, 1138 show_tabletCoordinateMode, store_tabletCoordinateMode); 1139 1140 /*********************************************************************** ··· 1176 } 1177 1178 static DEVICE_ATTR(tool_mode, 1179 - S_IRUGO | S_IWUGO, 1180 show_tabletToolMode, store_tabletToolMode); 1181 1182 /*********************************************************************** ··· 1219 } 1220 1221 static DEVICE_ATTR(xtilt, 1222 - S_IRUGO | S_IWUGO, show_tabletXtilt, store_tabletXtilt); 1223 1224 /*********************************************************************** 1225 * support routines for the 'ytilt' file. Note that this file ··· 1261 } 1262 1263 static DEVICE_ATTR(ytilt, 1264 - S_IRUGO | S_IWUGO, show_tabletYtilt, store_tabletYtilt); 1265 1266 /*********************************************************************** 1267 * support routines for the 'jitter' file. Note that this file ··· 1288 } 1289 1290 static DEVICE_ATTR(jitter, 1291 - S_IRUGO | S_IWUGO, 1292 show_tabletJitterDelay, store_tabletJitterDelay); 1293 1294 /*********************************************************************** ··· 1317 } 1318 1319 static DEVICE_ATTR(delay, 1320 - S_IRUGO | S_IWUGO, 1321 show_tabletProgrammableDelay, store_tabletProgrammableDelay); 1322 1323 /*********************************************************************** ··· 1406 } 1407 1408 static DEVICE_ATTR(stylus_upper, 1409 - S_IRUGO | S_IWUGO, 1410 show_tabletStylusUpper, store_tabletStylusUpper); 1411 1412 /*********************************************************************** ··· 1437 } 1438 1439 static DEVICE_ATTR(stylus_lower, 1440 - S_IRUGO | S_IWUGO, 1441 show_tabletStylusLower, store_tabletStylusLower); 1442 1443 /*********************************************************************** ··· 1475 } 1476 1477 static DEVICE_ATTR(mouse_left, 1478 - S_IRUGO | S_IWUGO, 1479 show_tabletMouseLeft, store_tabletMouseLeft); 1480 1481 /*********************************************************************** ··· 1505 } 1506 1507 static DEVICE_ATTR(mouse_middle, 1508 - S_IRUGO | S_IWUGO, 1509 show_tabletMouseMiddle, store_tabletMouseMiddle); 1510 1511 /*********************************************************************** ··· 1535 } 1536 1537 static DEVICE_ATTR(mouse_right, 1538 - S_IRUGO | S_IWUGO, 1539 show_tabletMouseRight, store_tabletMouseRight); 1540 1541 /*********************************************************************** ··· 1567 } 1568 1569 static DEVICE_ATTR(wheel, 1570 - S_IRUGO | S_IWUGO, show_tabletWheel, store_tabletWheel); 1571 1572 /*********************************************************************** 1573 * support routines for the 'execute' file. Note that this file ··· 1600 } 1601 1602 static DEVICE_ATTR(execute, 1603 - S_IRUGO | S_IWUGO, show_tabletExecute, store_tabletExecute); 1604 1605 /*********************************************************************** 1606 * support routines for the 'odm_code' file. Note that this file
··· 1097 } 1098 1099 static DEVICE_ATTR(pointer_mode, 1100 + S_IRUGO | S_IWUSR, 1101 show_tabletPointerMode, store_tabletPointerMode); 1102 1103 /*********************************************************************** ··· 1134 } 1135 1136 static DEVICE_ATTR(coordinate_mode, 1137 + S_IRUGO | S_IWUSR, 1138 show_tabletCoordinateMode, store_tabletCoordinateMode); 1139 1140 /*********************************************************************** ··· 1176 } 1177 1178 static DEVICE_ATTR(tool_mode, 1179 + S_IRUGO | S_IWUSR, 1180 show_tabletToolMode, store_tabletToolMode); 1181 1182 /*********************************************************************** ··· 1219 } 1220 1221 static DEVICE_ATTR(xtilt, 1222 + S_IRUGO | S_IWUSR, show_tabletXtilt, store_tabletXtilt); 1223 1224 /*********************************************************************** 1225 * support routines for the 'ytilt' file. Note that this file ··· 1261 } 1262 1263 static DEVICE_ATTR(ytilt, 1264 + S_IRUGO | S_IWUSR, show_tabletYtilt, store_tabletYtilt); 1265 1266 /*********************************************************************** 1267 * support routines for the 'jitter' file. Note that this file ··· 1288 } 1289 1290 static DEVICE_ATTR(jitter, 1291 + S_IRUGO | S_IWUSR, 1292 show_tabletJitterDelay, store_tabletJitterDelay); 1293 1294 /*********************************************************************** ··· 1317 } 1318 1319 static DEVICE_ATTR(delay, 1320 + S_IRUGO | S_IWUSR, 1321 show_tabletProgrammableDelay, store_tabletProgrammableDelay); 1322 1323 /*********************************************************************** ··· 1406 } 1407 1408 static DEVICE_ATTR(stylus_upper, 1409 + S_IRUGO | S_IWUSR, 1410 show_tabletStylusUpper, store_tabletStylusUpper); 1411 1412 /*********************************************************************** ··· 1437 } 1438 1439 static DEVICE_ATTR(stylus_lower, 1440 + S_IRUGO | S_IWUSR, 1441 show_tabletStylusLower, store_tabletStylusLower); 1442 1443 /*********************************************************************** ··· 1475 } 1476 1477 static DEVICE_ATTR(mouse_left, 1478 + S_IRUGO | S_IWUSR, 1479 show_tabletMouseLeft, store_tabletMouseLeft); 1480 1481 /*********************************************************************** ··· 1505 } 1506 1507 static DEVICE_ATTR(mouse_middle, 1508 + S_IRUGO | S_IWUSR, 1509 show_tabletMouseMiddle, store_tabletMouseMiddle); 1510 1511 /*********************************************************************** ··· 1535 } 1536 1537 static DEVICE_ATTR(mouse_right, 1538 + S_IRUGO | S_IWUSR, 1539 show_tabletMouseRight, store_tabletMouseRight); 1540 1541 /*********************************************************************** ··· 1567 } 1568 1569 static DEVICE_ATTR(wheel, 1570 + S_IRUGO | S_IWUSR, show_tabletWheel, store_tabletWheel); 1571 1572 /*********************************************************************** 1573 * support routines for the 'execute' file. Note that this file ··· 1600 } 1601 1602 static DEVICE_ATTR(execute, 1603 + S_IRUGO | S_IWUSR, show_tabletExecute, store_tabletExecute); 1604 1605 /*********************************************************************** 1606 * support routines for the 'odm_code' file. Note that this file