Re: [DNG] Hopman (Was: ..are we|Devuan safe from this systemd backdoor malware (...)?

2021-05-09 Thread aitor

Hi again Didier,

On 3/5/21 11:53, Didier Kryn wrote:

     I'm very happy that you cath up on Hopman. I initially made it for
my needs and the community and as a proof of concept. Then I became too
ambitious and I didn't succeed to properly organize internationalization
files and I got discouraged. Yet the tool is working and it is my only
installed tool to mount hotplug USB disks.
I had a copy of your code, but i lost the part dedicated to the 
internationalization.
It doesn't worry me because my approach in dealing with this matter will 
differ a bit from yours.
However, i would like to verify i'm using your most recent code of 
Hopman anyway,
and the gitlab repository, annoucced on the other hand in Emiliano 
Marini's website [*], no longer exists:


https://git.devuan.org/kryn/hopman 



     The first method I considered to determine which device was
hotpluggable was a config file made of a list of regular expressions to
match the device file names, such as "sd[c-f]*", untill I found that
kernel tag. Then I discovered, like you, that it only tagged USB
devices. But I sticked with the kernel tag by lazzyness and beause I
could live with it (I use an USB-SDcard adapter).



With the inclusion of some files taken from the vdev project, the device 
file names
are no longer a problem to worry about. However, you'll be still able to 
list all the hotpluggable devices via:


$ lsblk -o PATH,HOTPLUG

The only requirement is util-linux. At  this point, as you already know, 
it's worth to highlight that *hotpluggable* is not the same as 
*removable*. *

*

*
*


     There is still a bug in a function in subdir watch, which I have
narrowed down to a logic error in the handling of multiple inotify
events in one buffer. This happens typically the first time a loop
device is mounted, because the driver then creates all loop devices at
once and the corresponding inotify events are small enough that more
than one can fit in the buffer; then hopman enters an endless loop.
Maybe I will dedicate time to repair it some day (~:


I'm not using inotify, but there is still an issue related to the use of 
lstat in the following file:


https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/watch/devpath.c 



only when you leave running hopman for an overly long time (which isn't 
the case in practice),
because of the many opened files during the recursive scanning of 
"/sys/devices".


To end with, i've just updated the code in gitea including a screenshot, 
and let's say that it's working pretty fine:


https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master 



Btw, i added a reference in the headers of my files, and also included 
myself in the LICENSE file.
The same with the code taken from vdev, mantaining Jude Nelson's 
copyright there. Is it right?


Cheers:)

Aitor.

[*] Aka linuxito:

https://www.linuxito.com/misc/1231-resumen-de-noticias-de-la-comunidad-devuan-agosto-2019 




___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Hopman (Was: ..are we|Devuan safe from this systemd backdoor malware (...)?

2021-05-03 Thread Didier Kryn
Le 02/05/2021 à 21:09, aitor a écrit :
>
> Hi Didier,
>
> On 1/5/21 17:11, Didier Kryn wrote:
>>     Gvfs is not expected to be installed on servers, but is required by
>> some desktop goodies - even in Xfce4, for example if you install the
>> tool to mount/unmount hotplug disks; it is primarily to avoid it that I
>> developped hopman.
> As i announced, i'm continuing your Hopman project and today i pushed
> the code of the new interface in Gtkmm-2.4,
> keeping yours the same original folder GTK2. The code is available at:
>
> https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/gtkmm
> 
>
> There have been some changes in the watch directory too. For example,
> the original C code didn't manage removable
> sata, ssd... hard disks connected via usb, because the integer
> storaged in the corresponding "removable" file [*] was equal to "0"
> in such cases. On the other hand, trying to figure out how to get the
> hotplug partitioning data in the most efficient way,
> i ended up involved in the helpers of vdev (stat_usb.* and common.*
> files in  the watch directory):
>
> https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/watch
> 
>
> I had wanted to upload the packages of hopman throughout the past
> week, but i've had issues related to some, already resolved,
> GdkMouseEvents. Therefore, they'll be available as soon as posible.
>
> Cheers,
>
> Aitor.
>
> [*] Have a look at the lines nº 25-30 of hotplug_partition.c:
>
> https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/watch/hotplug_partition.c
> 
>

    Hi Aitor.

    I'm very happy that you cath up on Hopman. I initially made it for
my needs and the community and as a proof of concept. Then I became too
ambitious and I didn't succeed to properly organize internationalization
files and I got discouraged. Yet the tool is working and it is my only
installed tool to mount hotplug USB disks.

    The first method I considered to determine which device was
hotpluggable was a config file made of a list of regular expressions to
match the device file names, such as "sd[c-f]*", untill I found that
kernel tag. Then I discovered, like you, that it only tagged USB
devices. But I sticked with the kernel tag by lazzyness and beause I
could live with it (I use an USB-SDcard adapter).

    There is still a bug in a function in subdir watch, which I have
narrowed down to a logic error in the handling of multiple inotify
events in one buffer. This happens typically the first time a loop
device is mounted, because the driver then creates all loop devices at
once and the corresponding inotify events are small enough that more
than one can fit in the buffer; then hopman enters an endless loop.
Maybe I will dedicate time to repair it some day (~:

--     Didier



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Hopman (Was: ..are we|Devuan safe from this systemd backdoor malware (...)?

2021-05-02 Thread aitor

Hi Didier,

On 1/5/21 17:11, Didier Kryn wrote:

     Gvfs is not expected to be installed on servers, but is required by
some desktop goodies - even in Xfce4, for example if you install the
tool to mount/unmount hotplug disks; it is primarily to avoid it that I
developped hopman.
As i announced, i'm continuing your Hopman project and today i pushed 
the code of the new interface in Gtkmm-2.4,

keeping yours the same original folder GTK2. The code is available at:

https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/gtkmm 



There have been some changes in the watch directory too. For example, 
the original C code didn't manage removable
sata, ssd... hard disks connected via usb, because the integer storaged 
in the corresponding "removable" file [*] was equal to "0"
in such cases. On the other hand, trying to figure out how to get the 
hotplug partitioning data in the most efficient way,
i ended up involved in the helpers of vdev (stat_usb.* and common.* 
files in  the watch directory):


https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/watch 



I had wanted to upload the packages of hopman throughout the past week, 
but i've had issues related to some, already resolved,

GdkMouseEvents. Therefore, they'll be available as soon as posible.

Cheers,

Aitor.

[*] Have a look at the lines nº 25-30 of hotplug_partition.c:

https://gitea.devuan.dev/aitor_czr/hopman/src/branch/master/hopman-1.0/watch/hotplug_partition.c 



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng