diff options
| author | Chris Wright <[email protected]> | 2010-08-10 18:02:55 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-11 08:59:18 -0700 |
| commit | b7300b78d1a87625975a799a109a2f98d77757c8 (patch) | |
| tree | 8cf263c09daf725ee701b0acd7ad700c530a5f08 /scripts/patch-kernel | |
| parent | e400c28524af2d344b1663b27bf28984fa959a0e (diff) | |
blkdev: cgroup whitelist permission fix
The cgroup device whitelist code gets confused when trying to grant
permission to a disk partition that is not currently open. Part of
blkdev_open() includes __blkdev_get() on the whole disk.
Basically, the only ways to reliably allow a cgroup access to a partition
on a block device when using the whitelist are to 1) also give it access
to the whole block device or 2) make sure the partition is already open in
a different context.
The patch avoids the cgroup check for the whole disk case when opening a
partition.
Addresses https://bugzilla.redhat.com/show_bug.cgi?id=589662
Signed-off-by: Chris Wright <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]>
Tested-by: Serge E. Hallyn <[email protected]>
Reported-by: Vivek Goyal <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: "Daniel P. Berrange" <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions