dm.c (10205618052908770451acd33eaeaa7685e97ed2) | dm.c (0378c625afe80eb3f212adae42cc33c9f6f31abf) |
---|---|
1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm-core.h" --- 548 unchanged lines hidden (view full) --- 557 goto out; 558 559 if (r > 0) { 560 /* 561 * Target determined this ioctl is being issued against a 562 * subset of the parent bdev; require extra privileges. 563 */ 564 if (!capable(CAP_SYS_RAWIO)) { | 1/* 2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm-core.h" --- 548 unchanged lines hidden (view full) --- 557 goto out; 558 559 if (r > 0) { 560 /* 561 * Target determined this ioctl is being issued against a 562 * subset of the parent bdev; require extra privileges. 563 */ 564 if (!capable(CAP_SYS_RAWIO)) { |
565 DMWARN_LIMIT( | 565 DMDEBUG_LIMIT( |
566 "%s: sending ioctl %x to DM device without required privilege.", 567 current->comm, cmd); 568 r = -ENOIOCTLCMD; 569 goto out; 570 } 571 } 572 573 if (!bdev->bd_disk->fops->ioctl) --- 2529 unchanged lines hidden --- | 566 "%s: sending ioctl %x to DM device without required privilege.", 567 current->comm, cmd); 568 r = -ENOIOCTLCMD; 569 goto out; 570 } 571 } 572 573 if (!bdev->bd_disk->fops->ioctl) --- 2529 unchanged lines hidden --- |