Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9759
b: refs/heads/master
c: 3b0e77b
h: refs/heads/master
i:
  9757: 3db6ae5
  9755: 63f7a08
  9751: 3121adf
  9743: 56b9882
  9727: 9fd6963
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Oct 8, 2005
1 parent 92607b8 commit b68dd8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aa19ad84c38cd50bfc0560646efe1c9ca83d925
refs/heads/master: 3b0e77bd144203a507eb191f7117d2c5004ea1de
8 changes: 4 additions & 4 deletions trunk/drivers/block/scsi_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ static int verify_command(struct file *file, unsigned char *cmd)
return 0;
}

/* And root can do any command.. */
if (capable(CAP_SYS_RAWIO))
return 0;

if (!type) {
cmd_type[cmd[0]] = CMD_WARNED;
printk(KERN_WARNING "scsi: unknown opcode 0x%02x\n", cmd[0]);
}

/* And root can do any command.. */
if (capable(CAP_SYS_RAWIO))
return 0;

/* Otherwise fail it with an "Operation not permitted" */
return -EPERM;
}
Expand Down

0 comments on commit b68dd8c

Please sign in to comment.