Closed GoogleCodeExporter closed 9 years ago
Replying to myself about the libmount ability to store "abritrary" data:
/run/mount/utab could contain an ATTRS= string set by mnt_fs_get_attributes()
libmount also provides mnt_table_get_userdata() / mnt_table_set_userdata()
Original comment by raphael....@gmail.com
on 26 Mar 2014 at 1:34
I am not a cryptsetup developer,i just though i should respond since its been
two days and you have not heard anything.
I think the standard response to your question is that cryptsetup is a general
purpose tool that deals with setting up and tearing down dm-crypt devices and
it does not concern itself with how the dm-crypt devices are used.
There are tools like the one you mention here among others like
"zuluCrypt","pmount","cryptmount" that use cryptsetup to do file system
encryption.
Original comment by mhogomch...@gmail.com
on 27 Mar 2014 at 2:34
Well, I do no think that everything what uses libcryptsetup should be part of
cryptsetup package. We provide stable API, application just use it.
But anyway, while crypt.mount can be helpful for some use cases, I think much
more better logic is already used in systemd while it activates arbitrary
stacked block devices and mount fs on it (including crypt devices). I mean, as
devices appears, it is able (according to /etc/fstab and /etc/cryptab) activate
almost every possible storage stack combination. (Please note, I am talking
about logic, not that systemd is cure for everything.)
The systemd-cryptsetup is also not part of systemd and not cryptsetup and I
think the same logic applies for pam_mount.
BTW several years ago there was something similar
(http://people.redhat.com/kzak/util-linux-cryptsetup/).
(But if you think pam_mount is useful, just use it! And yes, libmount is much
more better to use here. But is was not available in the time pam_mount was
written.)
In short, sorry, but I think cryptsetup should remain low-level library/utility
with exactly one use - handle crypt block devices.
Original comment by gmazyl...@gmail.com
on 27 Mar 2014 at 6:21
1) systemd ?? autocd is even more better as it works on directory/mount point
access rather than backing device. It does that for more than a decade, is
flexible and respect the Unix philosohpy
2) thanks for both the link about util-linux-cryptsetup which could be
insightful and for the final clarification about the perimeter of cryptsetup.
Original comment by raphael....@gmail.com
on 28 Mar 2014 at 1:25
Original issue reported on code.google.com by
raphael....@gmail.com
on 24 Mar 2014 at 2:00