idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
9,300
device_partition_create (Device *device, guint64 offset, guint64 size, const char *type, const char *label, char **flags, char **options, const c...
+Info
0
device_partition_create (Device *device, guint64 offset, guint64 size, const char *type, const char *label, char **flags, char **options, const c...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,301
device_partition_create_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint num_user_data, ...
+Info
0
device_partition_create_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint num_user_data, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,302
device_partition_modify_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint num_user_data, ...
+Info
0
device_partition_modify_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint num_user_data, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,303
device_partition_table_create (Device *device, const char *scheme, char **options, DBusGMethodInvocation *context) { daemon_local_check_auth (device->priv->daemon, device, ...
+Info
0
device_partition_table_create (Device *device, const char *scheme, char **options, DBusGMethodInvocation *context) { daemon_local_check_auth (device->priv->daemon, device, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,304
device_partition_table_create_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint n...
+Info
0
device_partition_table_create_authorized_cb (Daemon *daemon, Device *device, DBusGMethodInvocation *context, const gchar *action_id, guint n...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,305
device_removed (Device *device) { guint n; device->priv->removed = TRUE; dbus_g_connection_unregister_g_object (device->priv->system_bus_connection, G_OBJECT (device)); g_assert (dbus_g_connection_lookup_g_object (device->priv->system_bus_connection, device->priv->object_path) == NULL); /* device is now re...
+Info
0
device_removed (Device *device) { guint n; device->priv->removed = TRUE; dbus_g_connection_unregister_g_object (device->priv->system_bus_connection, G_OBJECT (device)); g_assert (dbus_g_connection_lookup_g_object (device->priv->system_bus_connection, device->priv->object_path) == NULL); /* device is now re...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,306
diff_sorted_lists (GList *list1, GList *list2, GCompareFunc compare, GList **added, GList **removed) { int order; *added = *removed = NULL; while (list1 != NULL && list2 != NULL) { order = (*compare) (list1->data, list2->data)...
+Info
0
diff_sorted_lists (GList *list1, GList *list2, GCompareFunc compare, GList **added, GList **removed) { int order; *added = *removed = NULL; while (list1 != NULL && list2 != NULL) { order = (*compare) (list1->data, list2->data)...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,307
drain_pending_changes (Device *device, gboolean force_update) { gboolean emit_changed; emit_changed = FALSE; /* the update-in-idle is set up if, and only if, there are pending changes - so * we should emit a 'change' event only if it is set up */ if (device->priv->emit_changed_idl...
+Info
0
drain_pending_changes (Device *device, gboolean force_update) { gboolean emit_changed; emit_changed = FALSE; /* the update-in-idle is set up if, and only if, there are pending changes - so * we should emit a 'change' event only if it is set up */ if (device->priv->emit_changed_idl...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,308
drive_ata_smart_initiate_selftest_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, ...
+Info
0
drive_ata_smart_initiate_selftest_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,309
drive_ata_smart_refresh_data_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stder...
+Info
0
drive_ata_smart_refresh_data_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stder...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,310
drive_detach_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpo...
+Info
0
drive_detach_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpo...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,311
drive_eject_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer u...
+Info
0
drive_eject_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer u...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,312
drive_poll_media_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
drive_poll_media_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,313
dup_list_from_ptrarray (GPtrArray *p) { GList *ret; guint n; ret = NULL; for (n = 0; n < p->len; n++) ret = g_list_prepend (ret, g_strdup (((gchar **) p->pdata)[n])); return ret; }
+Info
0
dup_list_from_ptrarray (GPtrArray *p) { GList *ret; guint n; ret = NULL; for (n = 0; n < p->len; n++) ret = g_list_prepend (ret, g_strdup (((gchar **) p->pdata)[n])); return ret; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,314
emit_job_changed (Device *device) { drain_pending_changes (device, FALSE); if (!device->priv->removed) { g_print ("**** EMITTING JOB-CHANGED for %s\n", device->priv->native_path); g_signal_emit_by_name (device->priv->daemon, "device-job-changed", ...
+Info
0
emit_job_changed (Device *device) { drain_pending_changes (device, FALSE); if (!device->priv->removed) { g_print ("**** EMITTING JOB-CHANGED for %s\n", device->priv->native_path); g_signal_emit_by_name (device->priv->daemon, "device-job-changed", ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,315
extract_lvm_uuid (const gchar *s) { GString *str; if (s == NULL || strlen (s) < 32) return NULL; str = g_string_new_len (s, 6); g_string_append_c (str, '-'); s += 6; g_string_append_len (str, s, 4); g_string_append_c (str, '-'); s += 4; g_string_append_len (str, s, 4); g_string_append_c (str, '-'); s ...
+Info
0
extract_lvm_uuid (const gchar *s) { GString *str; if (s == NULL || strlen (s) < 32) return NULL; str = g_string_new_len (s, 6); g_string_append_c (str, '-'); s += 6; g_string_append_len (str, s, 4); g_string_append_c (str, '-'); s += 4; g_string_append_len (str, s, 4); g_string_append_c (str, '-'); s ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,316
filesystem_check_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
filesystem_check_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,317
filesystem_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
filesystem_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,318
filesystem_create_create_luks_device_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, ...
+Info
0
filesystem_create_create_luks_device_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,319
filesystem_create_wait_for_luks_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { MkfsLuksData *data = user_data; Device *device; /* check if we're now a LUKS crypto device */ d...
+Info
0
filesystem_create_wait_for_luks_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { MkfsLuksData *data = user_data; Device *device; /* check if we're now a LUKS crypto device */ d...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,320
filesystem_create_wait_for_luks_device_not_seen_cb (gpointer user_data) { MkfsLuksData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating luks encrypted file system: timeout (10s) waiting for luks device to show up"); g_signal_handler_disconnect (data->dev...
+Info
0
filesystem_create_wait_for_luks_device_not_seen_cb (gpointer user_data) { MkfsLuksData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating luks encrypted file system: timeout (10s) waiting for luks device to show up"); g_signal_handler_disconnect (data->dev...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,321
filesystem_list_open_files_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
filesystem_list_open_files_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,322
filesystem_mount_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
filesystem_mount_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,323
filesystem_mount_data_free (MountData *data) { g_free (data->mount_point); g_free (data); }
+Info
0
filesystem_mount_data_free (MountData *data) { g_free (data->mount_point); g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,324
filesystem_mount_data_new (const char *mount_point, gboolean remove_dir_on_unmount) { MountData *data; data = g_new0 (MountData, 1); data->mount_point = g_strdup (mount_point); data->remove_dir_on_unmount = remove_dir_on_unmount; return data; }
+Info
0
filesystem_mount_data_new (const char *mount_point, gboolean remove_dir_on_unmount) { MountData *data; data = g_new0 (MountData, 1); data->mount_point = g_strdup (mount_point); data->remove_dir_on_unmount = remove_dir_on_unmount; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,325
filesystem_set_label_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
+Info
0
filesystem_set_label_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,326
find_cleartext_device (Device *device) { GList *devices; GList *l; Device *ret; ret = NULL; /* check that there isn't a cleartext device already */ devices = daemon_local_get_all_devices (device->priv->daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if...
+Info
0
find_cleartext_device (Device *device) { GList *devices; GList *l; Device *ret; ret = NULL; /* check that there isn't a cleartext device already */ devices = daemon_local_get_all_devices (device->priv->daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,327
find_lvm2_lv_name_for_uuids (Daemon *daemon, const gchar *group_uuid, const gchar *uuid) { GList *l; GList *devices; gchar *ret; ret = NULL; devices = daemon_local_get_all_devices (daemon); for (l = devices; l != NULL; l = l->next) { Devi...
+Info
0
find_lvm2_lv_name_for_uuids (Daemon *daemon, const gchar *group_uuid, const gchar *uuid) { GList *l; GList *devices; gchar *ret; ret = NULL; devices = daemon_local_get_all_devices (daemon); for (l = devices; l != NULL; l = l->next) { Devi...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,328
find_lvm2_vg_name_for_uuid (Daemon *daemon, const gchar *uuid) { GList *l; GList *devices; const gchar *vg_name; vg_name = NULL; devices = daemon_local_get_all_devices (daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if (d->pr...
+Info
0
find_lvm2_vg_name_for_uuid (Daemon *daemon, const gchar *uuid) { GList *l; GList *devices; const gchar *vg_name; vg_name = NULL; devices = daemon_local_get_all_devices (daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if (d->pr...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,329
force_luks_teardown (Device *device, Device *cleartext_device, ForceRemovalCompleteFunc callback, gpointer user_data) { /* first we gotta force remove the clear text device */ force_removal (cleartext_device, force_luks_teardown_clearte...
+Info
0
force_luks_teardown (Device *device, Device *cleartext_device, ForceRemovalCompleteFunc callback, gpointer user_data) { /* first we gotta force remove the clear text device */ force_removal (cleartext_device, force_luks_teardown_clearte...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,330
force_luks_teardown_cleartext_done (Device *device, gboolean success, gpointer user_data) { int n; char *argv[16]; ForceLuksTeardownData *data = user_data; if (!success) { if (data->fr_callback != NULL) data->fr_callback ...
+Info
0
force_luks_teardown_cleartext_done (Device *device, gboolean success, gpointer user_data) { int n; char *argv[16]; ForceLuksTeardownData *data = user_data; if (!success) { if (data->fr_callback != NULL) data->fr_callback ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,331
force_luks_teardown_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
+Info
0
force_luks_teardown_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,332
force_luks_teardown_data_new (Device *device, const char *dm_name, ForceRemovalCompleteFunc fr_callback, gpointer fr_user_data) { ForceLuksTeardownData *data; data = g_new0 (ForceLuksTeardownData, 1); data->device = g_objec...
+Info
0
force_luks_teardown_data_new (Device *device, const char *dm_name, ForceRemovalCompleteFunc fr_callback, gpointer fr_user_data) { ForceLuksTeardownData *data; data = g_new0 (ForceLuksTeardownData, 1); data->device = g_objec...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,333
force_luks_teardown_data_unref (ForceLuksTeardownData *data) { if (data->device != NULL) g_object_unref (data->device); g_free (data->dm_name); g_free (data); }
+Info
0
force_luks_teardown_data_unref (ForceLuksTeardownData *data) { if (data->device != NULL) g_object_unref (data->device); g_free (data->dm_name); g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,334
force_removal (Device *device, ForceRemovalCompleteFunc callback, gpointer user_data) { /* Device is going bye bye. If this device is * * - Mounted by us, then forcibly unmount it. * * - If it's a luks device, check if there's cleartext * companion. If so, tear it do...
+Info
0
force_removal (Device *device, ForceRemovalCompleteFunc callback, gpointer user_data) { /* Device is going bye bye. If this device is * * - Mounted by us, then forcibly unmount it. * * - If it's a luks device, check if there's cleartext * companion. If so, tear it do...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,335
force_unmount (Device *device, ForceRemovalCompleteFunc callback, gpointer user_data) { int n; char *argv[16]; const gchar *mount_path; mount_path = ((gchar **) device->priv->device_mount_paths->pdata)[0]; n = 0; argv[n++] = "umount"; /* on Linux, we only have lazy unmount ...
+Info
0
force_unmount (Device *device, ForceRemovalCompleteFunc callback, gpointer user_data) { int n; char *argv[16]; const gchar *mount_path; mount_path = ((gchar **) device->priv->device_mount_paths->pdata)[0]; n = 0; argv[n++] = "umount"; /* on Linux, we only have lazy unmount ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,336
force_unmount_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
force_unmount_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,337
force_unmount_data_unref (ForceUnmountData *data) { g_free (data->mount_path); g_free (data); }
+Info
0
force_unmount_data_unref (ForceUnmountData *data) { g_free (data->mount_path); g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,338
get_command_line_for_pid (pid_t pid) { char proc_name[32]; char *buf; gsize len; char *ret; unsigned int n; ret = NULL; snprintf (proc_name, sizeof(proc_name), "/proc/%d/cmdline", pid); if (g_file_get_contents (proc_name, &buf, &len, NULL)) { for (n = 0; n < len; n++) { if ...
+Info
0
get_command_line_for_pid (pid_t pid) { char proc_name[32]; char *buf; gsize len; char *ret; unsigned int n; ret = NULL; snprintf (proc_name, sizeof(proc_name), "/proc/%d/cmdline", pid); if (g_file_get_contents (proc_name, &buf, &len, NULL)) { for (n = 0; n < len; n++) { if ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,339
get_dmmp_device_node (Device *device) { static gchar buf[1024]; g_assert (device->priv->device_is_linux_dmmp); g_snprintf (buf, sizeof (buf), "/dev/mapper/%s", device->priv->linux_dmmp_name); return buf; }
+Info
0
get_dmmp_device_node (Device *device) { static gchar buf[1024]; g_assert (device->priv->device_is_linux_dmmp); g_snprintf (buf, sizeof (buf), "/dev/mapper/%s", device->priv->linux_dmmp_name); return buf; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,340
get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { Device *device = DEVICE (object); switch (prop_id) { case PROP_NATIVE_PATH: g_value_set_string (value, device->priv->native_path); break; case PROP_DEVICE_DETECTION_T...
+Info
0
get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { Device *device = DEVICE (object); switch (prop_id) { case PROP_NATIVE_PATH: g_value_set_string (value, device->priv->native_path); break; case PROP_DEVICE_DETECTION_T...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,341
is_device_in_fstab (Device *device, char **out_mount_point) { GList *l; GList *mount_points; gboolean ret; ret = FALSE; mount_points = g_unix_mount_points_get (NULL); for (l = mount_points; l != NULL; l = l->next) { GUnixMountPoint *mount_point = l->data; char canonical...
+Info
0
is_device_in_fstab (Device *device, char **out_mount_point) { GList *l; GList *mount_points; gboolean ret; ret = FALSE; mount_points = g_unix_mount_points_get (NULL); for (l = mount_points; l != NULL; l = l->next) { GUnixMountPoint *mount_point = l->data; char canonical...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,342
is_mount_option_allowed (const FSMountOptions *fsmo, const char *option, uid_t caller_uid) { int n; char *endp; uid_t uid; gid_t gid; gboolean allowed; const char *ep; gsize ep_len; allowed = FALSE; /* first run through the allowed mount options */ ...
+Info
0
is_mount_option_allowed (const FSMountOptions *fsmo, const char *option, uid_t caller_uid) { int n; char *endp; uid_t uid; gid_t gid; gboolean allowed; const char *ep; gsize ep_len; allowed = FALSE; /* first run through the allowed mount options */ ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,343
is_uid_in_gid (uid_t uid, gid_t gid) { gboolean ret; struct passwd *pw; static gid_t supplementary_groups[128]; int num_supplementary_groups = 128; int n; /* TODO: use some #define instead of harcoding some random number like 128 */ ret = FALSE; pw = getpwuid (uid); if (pw == NULL) ...
+Info
0
is_uid_in_gid (uid_t uid, gid_t gid) { gboolean ret; struct passwd *pw; static gid_t supplementary_groups[128]; int num_supplementary_groups = 128; int n; /* TODO: use some #define instead of harcoding some random number like 128 */ ret = FALSE; pw = getpwuid (uid); if (pw == NULL) ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,344
job_cancel (Device *device) { g_return_if_fail (device->priv->job != NULL); device->priv->job->was_cancelled = TRUE; /* TODO: maybe wait and user a bigger hammer? (SIGKILL) */ kill (device->priv->job->pid, SIGTERM); }
+Info
0
job_cancel (Device *device) { g_return_if_fail (device->priv->job != NULL); device->priv->job->was_cancelled = TRUE; /* TODO: maybe wait and user a bigger hammer? (SIGKILL) */ kill (device->priv->job->pid, SIGTERM); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,345
job_child_watch_cb (GPid pid, int status, gpointer user_data) { char *buf; gsize buf_size; Job *job = user_data; if (g_io_channel_read_to_end (job->error_channel, &buf, &buf_size, NULL) == G_IO_STATUS_NORMAL) { g_string_append_len (job->error_string, buf, buf_s...
+Info
0
job_child_watch_cb (GPid pid, int status, gpointer user_data) { char *buf; gsize buf_size; Job *job = user_data; if (g_io_channel_read_to_end (job->error_channel, &buf, &buf_size, NULL) == G_IO_STATUS_NORMAL) { g_string_append_len (job->error_string, buf, buf_s...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,346
job_complete (Job *job) { if (job->device != NULL && job->job_id != NULL) { job->device->priv->job_in_progress = FALSE; g_free (job->device->priv->job_id); job->device->priv->job_id = NULL; job->device->priv->job_initiated_by_uid = 0; job->device->priv->job_is_cancellable = FALSE; ...
+Info
0
job_complete (Job *job) { if (job->device != NULL && job->job_id != NULL) { job->device->priv->job_in_progress = FALSE; g_free (job->device->priv->job_id); job->device->priv->job_id = NULL; job->device->priv->job_initiated_by_uid = 0; job->device->priv->job_is_cancellable = FALSE; ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,347
job_free (Job *job) { if (job->user_data_destroy_func != NULL) job->user_data_destroy_func (job->user_data); if (job->device != NULL) g_object_unref (job->device); if (job->stderr_fd >= 0) close (job->stderr_fd); if (job->stdout_fd >= 0) close (job->stdout_fd); if (job->stdin_fd >= 0) { ...
+Info
0
job_free (Job *job) { if (job->user_data_destroy_func != NULL) job->user_data_destroy_func (job->user_data); if (job->device != NULL) g_object_unref (job->device); if (job->stderr_fd >= 0) close (job->stderr_fd); if (job->stdout_fd >= 0) close (job->stdout_fd); if (job->stdin_fd >= 0) { ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,348
job_local_end (Device *device) { if (!device->priv->job_in_progress || device->priv->job != NULL) { g_warning ("There is no job running"); goto out; } device->priv->job_in_progress = FALSE; g_free (device->priv->job_id); device->priv->job_id = NULL; device->priv->job_initiated_by_uid = 0;...
+Info
0
job_local_end (Device *device) { if (!device->priv->job_in_progress || device->priv->job != NULL) { g_warning ("There is no job running"); goto out; } device->priv->job_in_progress = FALSE; g_free (device->priv->job_id); device->priv->job_id = NULL; device->priv->job_initiated_by_uid = 0;...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,349
job_new (DBusGMethodInvocation *context, const char *job_id, gboolean is_cancellable, Device *device, char **argv, const char *stdin_str, JobCompletedFunc job_completed_func, gboolean udev_settle, /* if TRUE, runs udevsettle before returning if the command ...
+Info
0
job_new (DBusGMethodInvocation *context, const char *job_id, gboolean is_cancellable, Device *device, char **argv, const char *stdin_str, JobCompletedFunc job_completed_func, gboolean udev_settle, /* if TRUE, runs udevsettle before returning if the command ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,350
job_read_out (GIOChannel *channel, GIOCondition condition, gpointer user_data) { char *s; char *line; char buf[1024]; gsize bytes_read; Job *job = user_data; g_io_channel_read_chars (channel, buf, sizeof buf, &bytes_read, NULL); g_string_append_len (job->stdout_string, buf, by...
+Info
0
job_read_out (GIOChannel *channel, GIOCondition condition, gpointer user_data) { char *s; char *line; char buf[1024]; gsize bytes_read; Job *job = user_data; g_io_channel_read_chars (channel, buf, sizeof buf, &bytes_read, NULL); g_string_append_len (job->stdout_string, buf, by...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,351
job_udevadm_settle_child_cb (GPid pid, gint status, gpointer user_data) { Job *job = user_data; job_complete (job); }
+Info
0
job_udevadm_settle_child_cb (GPid pid, gint status, gpointer user_data) { Job *job = user_data; job_complete (job); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,352
job_write_in (GIOChannel *channel, GIOCondition condition, gpointer user_data) { Job *job = user_data; gsize bytes_written; if (job->stdin_cursor == NULL || job->stdin_cursor[0] == '\0') { /* nothing left to write; remove ourselves */ return FALSE; } g_io_channe...
+Info
0
job_write_in (GIOChannel *channel, GIOCondition condition, gpointer user_data) { Job *job = user_data; gsize bytes_written; if (job->stdin_cursor == NULL || job->stdin_cursor[0] == '\0') { /* nothing left to write; remove ourselves */ return FALSE; } g_io_channe...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,353
linux_lvm2_lv_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
+Info
0
linux_lvm2_lv_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,354
linux_lvm2_lv_remove_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
+Info
0
linux_lvm2_lv_remove_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, co...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,355
linux_lvm2_lv_start_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
+Info
0
linux_lvm2_lv_start_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,356
linux_lvm2_vg_remove_pv_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
linux_lvm2_vg_remove_pv_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,357
linux_lvm2_vg_set_name_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
linux_lvm2_vg_set_name_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,358
linux_lvm2_vg_start_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
+Info
0
linux_lvm2_vg_start_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const ch...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,359
linux_lvm2_vg_stop_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *st...
+Info
0
linux_lvm2_vg_stop_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *st...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,360
linux_md_add_spare_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
linux_md_add_spare_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,361
linux_md_check_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
linux_md_check_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,362
linux_md_create_data_new (DBusGMethodInvocation *context, Daemon *daemon, const char *first_component_objpath) { LinuxMdCreateData *data; data = g_new0 (LinuxMdCreateData, 1); data->refcount = 1; data->context = context; data->daemon = g_object_ref (daemon...
+Info
0
linux_md_create_data_new (DBusGMethodInvocation *context, Daemon *daemon, const char *first_component_objpath) { LinuxMdCreateData *data; data = g_new0 (LinuxMdCreateData, 1); data->refcount = 1; data->context = context; data->daemon = g_object_ref (daemon...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,363
linux_md_create_data_ref (LinuxMdCreateData *data) { data->refcount++; return data; }
+Info
0
linux_md_create_data_ref (LinuxMdCreateData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,364
linux_md_create_data_unref (LinuxMdCreateData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->daemon); g_free (data->first_component_objpath); g_free (data); } }
+Info
0
linux_md_create_data_unref (LinuxMdCreateData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->daemon); g_free (data->first_component_objpath); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,365
linux_md_create_device_not_seen_cb (gpointer user_data) { LinuxMdCreateData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error assembling array: timeout (10s) waiting for array to show up"); g_signal_handler_disconnect (data->daemon, data->device_added_signal_handler_id); linux_md_create_data...
+Info
0
linux_md_create_device_not_seen_cb (gpointer user_data) { LinuxMdCreateData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error assembling array: timeout (10s) waiting for array to show up"); g_signal_handler_disconnect (data->daemon, data->device_added_signal_handler_id); linux_md_create_data...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,366
linux_md_expand_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
linux_md_expand_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,367
linux_md_remove_component_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
linux_md_remove_component_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,368
linux_md_remove_component_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { RemoveComponentData *data = user_data; Device *device; GError *error; error = NULL; device = daemon_local_find...
+Info
0
linux_md_remove_component_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { RemoveComponentData *data = user_data; Device *device; GError *error; error = NULL; device = daemon_local_find...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,369
linux_md_remove_component_device_not_seen_cb (gpointer user_data) { RemoveComponentData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error removing component: timeout (10s) waiting for slave to stop being busy"); g_signal_handler_disconnect (data->slave->priv->daem...
+Info
0
linux_md_remove_component_device_not_seen_cb (gpointer user_data) { RemoveComponentData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error removing component: timeout (10s) waiting for slave to stop being busy"); g_signal_handler_disconnect (data->slave->priv->daem...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,370
linux_md_start_data_new (DBusGMethodInvocation *context, Daemon *daemon, const char *uuid) { LinuxMdStartData *data; data = g_new0 (LinuxMdStartData, 1); data->refcount = 1; data->context = context; data->daemon = g_object_ref (daemon); data->uuid = g_strd...
+Info
0
linux_md_start_data_new (DBusGMethodInvocation *context, Daemon *daemon, const char *uuid) { LinuxMdStartData *data; data = g_new0 (LinuxMdStartData, 1); data->refcount = 1; data->context = context; data->daemon = g_object_ref (daemon); data->uuid = g_strd...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,371
linux_md_start_data_ref (LinuxMdStartData *data) { data->refcount++; return data; }
+Info
0
linux_md_start_data_ref (LinuxMdStartData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,372
linux_md_start_data_unref (LinuxMdStartData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->daemon); g_free (data->uuid); g_free (data); } }
+Info
0
linux_md_start_data_unref (LinuxMdStartData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->daemon); g_free (data->uuid); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,373
linux_md_start_device_added_cb (Daemon *daemon, const char *object_path, gpointer user_data) { LinuxMdStartData *data = user_data; Device *device; /* check the device is the one we're looking for */ device = daemon_local_find_by_object_path (daemo...
+Info
0
linux_md_start_device_added_cb (Daemon *daemon, const char *object_path, gpointer user_data) { LinuxMdStartData *data = user_data; Device *device; /* check the device is the one we're looking for */ device = daemon_local_find_by_object_path (daemo...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,374
linux_md_stop_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
linux_md_stop_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,375
lock_encryption_data_new (DBusGMethodInvocation *context, Device *luks_device, Device *cleartext_device) { LockEncryptionData *data; data = g_new0 (LockEncryptionData, 1); data->refcount = 1; data->context = context; data->luks_device = g_object_ref (luks_...
+Info
0
lock_encryption_data_new (DBusGMethodInvocation *context, Device *luks_device, Device *cleartext_device) { LockEncryptionData *data; data = g_new0 (LockEncryptionData, 1); data->refcount = 1; data->context = context; data->luks_device = g_object_ref (luks_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,376
lock_encryption_data_ref (LockEncryptionData *data) { data->refcount++; return data; }
+Info
0
lock_encryption_data_ref (LockEncryptionData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,377
lock_encryption_data_unref (LockEncryptionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->luks_device); g_object_unref (data->cleartext_device); g_free (data); } }
+Info
0
lock_encryption_data_unref (LockEncryptionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->luks_device); g_object_unref (data->cleartext_device); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,378
lsof_parse (const char *stdout, GPtrArray *processes) { int n; char **tokens; tokens = g_strsplit (stdout, "\n", 0); for (n = 0; tokens[n] != NULL; n++) { pid_t pid; uid_t uid; char *command_line; GValue elem = { 0 }; if (strlen (tokens[n]) == 0) c...
+Info
0
lsof_parse (const char *stdout, GPtrArray *processes) { int n; char **tokens; tokens = g_strsplit (stdout, "\n", 0); for (n = 0; tokens[n] != NULL; n++) { pid_t pid; uid_t uid; char *command_line; GValue elem = { 0 }; if (strlen (tokens[n]) == 0) c...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,379
luks_change_passphrase_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
luks_change_passphrase_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,380
luks_get_uid_from_dm_name (const char *dm_name, uid_t *out_uid) { int n; gboolean ret; uid_t uid; char *endp; ret = FALSE; if (!g_str_has_prefix (dm_name, "udisks-luks-uuid")) goto out; /* determine who unlocked the device */ for (n = strlen (dm_name) - 1; n >= 0; n--) ...
+Info
0
luks_get_uid_from_dm_name (const char *dm_name, uid_t *out_uid) { int n; gboolean ret; uid_t uid; char *endp; ret = FALSE; if (!g_str_has_prefix (dm_name, "udisks-luks-uuid")) goto out; /* determine who unlocked the device */ for (n = strlen (dm_name) - 1; n >= 0; n--) ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,381
luks_lock_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer user_data) { ...
+Info
0
luks_lock_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer user_data) { ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,382
luks_lock_wait_for_cleartext_device_not_seen_cb (gpointer user_data) { LockEncryptionData *data = user_data; job_local_end (data->luks_device); throw_error (data->context, ERROR_FAILED, "Error locking luks device: timeout (10s) waiting for cleartext device to be removed"); g_sig...
+Info
0
luks_lock_wait_for_cleartext_device_not_seen_cb (gpointer user_data) { LockEncryptionData *data = user_data; job_local_end (data->luks_device); throw_error (data->context, ERROR_FAILED, "Error locking luks device: timeout (10s) waiting for cleartext device to be removed"); g_sig...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,383
luks_lock_wait_for_cleartext_device_removed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { Device *device; LockEncryptionData *data = user_data; device = daemon_local_find_by_object_path (daemon, o...
+Info
0
luks_lock_wait_for_cleartext_device_removed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { Device *device; LockEncryptionData *data = user_data; device = daemon_local_find_by_object_path (daemon, o...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,384
luks_unlock_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer u...
+Info
0
luks_unlock_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer u...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,385
luks_unlock_device_not_seen_cb (gpointer user_data) { UnlockEncryptionData *data = user_data; g_signal_handler_disconnect (data->device->priv->daemon, data->device_added_signal_handler_id); g_signal_handler_disconnect (data->device->priv->daemon, data->device_changed_signal_handler_id); throw_error (data->con...
+Info
0
luks_unlock_device_not_seen_cb (gpointer user_data) { UnlockEncryptionData *data = user_data; g_signal_handler_disconnect (data->device->priv->daemon, data->device_added_signal_handler_id); g_signal_handler_disconnect (data->device->priv->daemon, data->device_changed_signal_handler_id); throw_error (data->con...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,386
luks_unlock_start_waiting_for_cleartext_device (UnlockEncryptionData *data) { Device *cleartext_device; cleartext_device = find_cleartext_device (data->device); if (cleartext_device != NULL) { /* update and emit a Changed() signal on the holder since the luks-holder * property indicates the clea...
+Info
0
luks_unlock_start_waiting_for_cleartext_device (UnlockEncryptionData *data) { Device *cleartext_device; cleartext_device = find_cleartext_device (data->device); if (cleartext_device != NULL) { /* update and emit a Changed() signal on the holder since the luks-holder * property indicates the clea...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,387
lvm2_lv_create_data_new (DBusGMethodInvocation *context, Daemon *daemon, const gchar *vg_uuid, const gchar *lv_name, const char *fstype, char **fsoptions) { CreateLvm2LVData *data; data = g_...
+Info
0
lvm2_lv_create_data_new (DBusGMethodInvocation *context, Daemon *daemon, const gchar *vg_uuid, const gchar *lv_name, const char *fstype, char **fsoptions) { CreateLvm2LVData *data; data = g_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,388
lvm2_lv_create_data_ref (CreateLvm2LVData *data) { data->refcount++; return data; }
+Info
0
lvm2_lv_create_data_ref (CreateLvm2LVData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,389
lvm2_lv_create_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreateLvm2LVData *data = user_data; Device *device; g_debug ("changed %s", object_path); device = lvm2_lv_create_has_lv (data); if (device != N...
+Info
0
lvm2_lv_create_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreateLvm2LVData *data = user_data; Device *device; g_debug ("changed %s", object_path); device = lvm2_lv_create_has_lv (data); if (device != N...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,390
lvm2_lv_create_device_not_seen_cb (gpointer user_data) { CreateLvm2LVData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating Logical Volume: timeout (10s) waiting for LV to show up"); g_signal_handler_disconnect (data->daemon, data->device_added_signal_han...
+Info
0
lvm2_lv_create_device_not_seen_cb (gpointer user_data) { CreateLvm2LVData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating Logical Volume: timeout (10s) waiting for LV to show up"); g_signal_handler_disconnect (data->daemon, data->device_added_signal_han...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,391
lvm2_lv_create_filesystem_create_hook (DBusGMethodInvocation *context, Device *device, gboolean filesystem_create_succeeded, gpointer user_data) { if (!filesystem_create_succeeded) { /* dang....
+Info
0
lvm2_lv_create_filesystem_create_hook (DBusGMethodInvocation *context, Device *device, gboolean filesystem_create_succeeded, gpointer user_data) { if (!filesystem_create_succeeded) { /* dang....
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,392
lvm2_lv_create_has_lv (CreateLvm2LVData *data) { GList *devices; Device *ret; GList *l; ret = NULL; devices = daemon_local_get_all_devices (data->daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if (d->priv->device_is_linux_lvm2_lv && g_strcmp0 (...
+Info
0
lvm2_lv_create_has_lv (CreateLvm2LVData *data) { GList *devices; Device *ret; GList *l; ret = NULL; devices = daemon_local_get_all_devices (data->daemon); for (l = devices; l != NULL; l = l->next) { Device *d = DEVICE (l->data); if (d->priv->device_is_linux_lvm2_lv && g_strcmp0 (...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,393
mkfs_data_unref (MkfsData *data) { g_free (data); }
+Info
0
mkfs_data_unref (MkfsData *data) { g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,394
mkfse_data_ref (MkfsLuksData *data) { data->refcount++; return data; }
+Info
0
mkfse_data_ref (MkfsLuksData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,395
mkfse_data_unref (MkfsLuksData *data) { data->refcount--; if (data->refcount == 0) { if (data->passphrase != NULL) { memset (data->passphrase, '\0', strlen (data->passphrase)); g_free (data->passphrase); } if (data->device != NULL) g_object_unref (data->de...
+Info
0
mkfse_data_unref (MkfsLuksData *data) { data->refcount--; if (data->refcount == 0) { if (data->passphrase != NULL) { memset (data->passphrase, '\0', strlen (data->passphrase)); g_free (data->passphrase); } if (data->device != NULL) g_object_unref (data->de...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,396
partition_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
partition_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,397
partition_create_data_new (DBusGMethodInvocation *context, Device *device, guint64 offset, guint64 size, const char *fstype, char **fsoptions) { CreatePartitionData *data; data = g...
+Info
0
partition_create_data_new (DBusGMethodInvocation *context, Device *device, guint64 offset, guint64 size, const char *fstype, char **fsoptions) { CreatePartitionData *data; data = g...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,398
partition_create_data_ref (CreatePartitionData *data) { data->refcount++; return data; }
+Info
0
partition_create_data_ref (CreatePartitionData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,399
partition_create_data_unref (CreatePartitionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->device); g_free (data->fstype); g_strfreev (data->fsoptions); g_free (data); } }
+Info
0
partition_create_data_unref (CreatePartitionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->device); g_free (data->fstype); g_strfreev (data->fsoptions); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null