patch-2.1.100 linux/drivers/char/ftape/zftape/zftape-ctl.c
Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/esp.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Wed May 6 10:56:03 1998
- Orig file:
v2.1.99/linux/drivers/char/ftape/zftape/zftape-ctl.c
- Orig date:
Tue Mar 17 22:18:14 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/char/ftape/zftape/zftape-ctl.c linux/drivers/char/ftape/zftape/zftape-ctl.c
@@ -1342,9 +1342,9 @@
TRACE_FUN(ft_t_flow);
TRACE(ft_t_noise, "Mag tape ioctl command: MTIOCFTCMD");
- if (!suser()) {
+ if (!capable(CAP_SYS_ADMIN)) {
TRACE_ABORT(-EPERM, ft_t_info,
- "only the superuser may send raw qic-117 commands");
+ "need CAP_SYS_ADMIN capability to send raw qic-117 commands");
}
if (zft_qic_mode) {
TRACE_ABORT(-EACCES, ft_t_info,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov