Bug 491745 - devicekit-disk should not be creating the file /dev/sdg1
Summary: devicekit-disk should not be creating the file /dev/sdg1
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: DeviceKit-disks
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-23 20:03 UTC by Daniel Walsh
Modified: 2009-04-07 04:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-07 04:50:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Walsh 2009-03-23 20:03:05 UTC
Description of problem:

Why is devicekit-disk creating /dev/sdg1?  I don't know of a reason for creating files under /dev?

If this is a temporary file it should be created in /var/run/devkit

type=AVC msg=audit(1237836883.196:2384): avc:  denied  { create } for  pid=27130 comm="touch" name="sdg1" scontext=system_u:system_r:devicekit_disk_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=file

avc generated using palimpsest

Comment 1 Matthias Clasen 2009-03-24 03:25:21 UTC
There's several places where DK-d does this:


                /* TODO: when we add polling, this can probably be removed. I have no idea why hal's
                 *       poller don't cause the kernel to revalidate the (missing) media
                 */
                touch_str = g_strdup_printf ("touch %s", device->priv->device_file);
                g_spawn_command_line_sync (touch_str, NULL, NULL, NULL, NULL);

Comment 2 Matthias Clasen 2009-04-07 04:50:08 UTC
The touch calls are gone in DeviceKit-disks-004


Note You need to log in before you can comment on or make changes to this bug.