Bug 491745 - devicekit-disk should not be creating the file /dev/sdg1
devicekit-disk should not be creating the file /dev/sdg1
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: DeviceKit-disks (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-23 16:03 EDT by Daniel Walsh
Modified: 2009-04-07 00:50 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-04-07 00:50:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Walsh 2009-03-23 16:03:05 EDT
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-23 23:25:21 EDT
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 00:50:08 EDT
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.