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
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);
The touch calls are gone in DeviceKit-disks-004