summaryrefslogtreecommitdiff
path: root/src/core/ima-setup.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-05-17 15:07:47 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-19 13:02:05 +0200
commit2005219f83130a8d5948b070b132f5dc21400a5f (patch)
tree6c30f81c8ddfc523572eb86c7c49de8a660e3b7a /src/core/ima-setup.c
parent139e5336286c37d9d4a2df01931ba0a86abbac69 (diff)
device: create units with intended "found" value
Change device_found_node() to also create a .device unit if a device is not known by udev; this is the case for "tentative" devices picked up by mountinfo (DEVICE_FOUND_MOUNT). With that we can record the "found" attribute on the unit. Change device_setup_unit() to also accept a NULL udev_device, and don't add the extra udev information in that case. Previously device_found_node() would not create a .device unit, and unit_add_node_link() would then create a "dead" stub one via manager_load_unit(), so we lost the "found" attribute and unmounted everything from that device. https://launchpad.net/bugs/1444402 http://lists.freedesktop.org/archives/systemd-devel/2015-May/031658.html
Diffstat (limited to 'src/core/ima-setup.c')
0 files changed, 0 insertions, 0 deletions