Commit Graph

215 Commits

Author SHA1 Message Date
Sebastian Messmer
a245ac1ffb Add XChaCha20-Poly1305 cipher and make it the default 2021-01-14 20:02:06 -08:00
Sebastian Messmer
042c7130eb Update to spdlog 1.8.2 2021-01-14 20:00:19 -08:00
Sebastian Messmer
6927a7087a Build with LTO if the compiler supports it 2021-01-06 20:42:07 -08:00
jeremymeadows
353f287bde
Added an option to create a mountpoint with a missing directory (#354)
* Added an option to create a mountpoint with a missing directory

It skips the normal confirmation message, which makes cryfs easier
to use in scripts, or can be aliased for quicker use.

* separated basedir and mountpoint autocreate flags, and added tests

* Werror and clang-tidy fixes
added to the ChangeLog

* fixed the bugs that clang-tidy caused

never used clang before, so I don't really know what it did and why it
caused compile errors
2020-07-31 18:08:19 -07:00
Sebastian Messmer
3938942a02 - cryfs-stats tool is guaranteed to be readonly and not modify the file system
- Now shows a better error message when failing to load the config file and distinguishes between 'wrong password' and 'config file not found'
- The cryfs-stats tool only reads and never writes the cryfs.config file
2020-07-24 16:14:53 -07:00
Sebastian Messmer
cd9aa14202 Merge branch 'release/0.10' into develop 2020-07-21 23:52:03 -07:00
Sebastian Messmer
127a18e2fa Add feature to changelog 2020-07-19 16:58:24 -07:00
Sebastian Messmer
41ab58faf3 Remove cryfs-stats tool which isn't ready yet and could destroy the file system 2020-07-19 13:30:12 -07:00
Sebastian Messmer
959bbab99c Typo 2020-07-15 16:47:44 -07:00
Sebastian Messmer
ad0e064f42 Use noatime by default 2020-07-14 20:16:32 -07:00
Sebastian Messmer
b603d3b58a Add an --immediate flag to cryfs-unmount that tries to unmount immediately and doesn't wait for processes to release their locks on the file system. 2020-07-13 18:43:50 -07:00
Sebastian Messmer
7d48336f8d Merge branch 'release/0.10' into develop 2020-07-12 20:43:54 -07:00
Sebastian Messmer
d32a98602b Fix Android compilation using patch file https://github.com/termux/termux-root-packages/files/4664745/config.h.patch.txt from https://github.com/cryfs/cryfs/issues/345 2020-07-12 20:43:09 -07:00
Sebastian Messmer
be20465f5e Fixed determining the user's homedir: If $HOME and the /etc/passwd entry for the current user contradict each other, now $HOME takes preference over /etc/passwd. 2020-07-12 15:19:17 -07:00
Sebastian Messmer
2793e014d4 Fixed determining the user's homedir: If $HOME and the /etc/passwd entry for the current user contradict each other, now $HOME takes preference over /etc/passwd. 2020-07-12 15:18:21 -07:00
Sebastian Messmer
0e27097462 Allow building with local dependencies instead of using conan 2020-07-09 01:15:25 -07:00
Sebastian Messmer
6f94834c90 Fix bug where a comma in the base directory name would make the file system fail to mount, https://github.com/cryfs/cryfs/issues/326 2020-06-30 19:13:28 -07:00
Sebastian Messmer
9cbc12fc57 Fix bug where a comma in the base directory name would make the file system fail to mount, https://github.com/cryfs/cryfs/issues/326 2020-06-30 14:25:37 -07:00
Sebastian Messmer
247ef47f94 Upgrade requirement to cmake 3.6 because that's needed to build the range-v3 dependency (if built locally and not with a prebuilt conan package) 2020-06-29 12:51:10 -07:00
Sebastian Messmer
8e617b1342 Add support for atime mount options (noatime, strictatime, relatime, atime, nodiratime). As before, relatime is the default. 2019-11-05 10:08:04 -05:00
Sebastian Messmer
8376a554cc Setup conan and get boost dependency through it 2019-11-05 10:02:54 -05:00
Sebastian Messmer
d2e5ba7fa5 Merge branch 'release/0.9' into develop 2019-06-08 13:34:47 -07:00
Sebastian Messmer
23b11860d3 Mark 0.9.11 as released 2019-06-08 13:33:53 -07:00
Sebastian Messmer
50341b763c Merge branch 'release/0.10' into develop 2019-06-08 13:33:06 -07:00
Sebastian Messmer
cf30234069 Mark 0.10.2 as released 2019-06-08 13:08:25 -07:00
Sebastian Messmer
335228b97c Merge from release/0.9 2019-06-03 19:29:51 -07:00
Sebastian Messmer
cba95beb17 Update to crypto++ 8.2 2019-06-01 20:34:28 -07:00
Sebastian Messmer
e90fda0f03 Fix a race condition when a file descriptor is closed while there's read/write requests for that file being processed. 2019-06-01 20:01:35 -07:00
Sebastian Messmer
251272b517 Fix a race condition when a file descriptor is closed while there's read/write requests for that file being processed. 2019-06-01 19:27:47 -07:00
Sebastian Messmer
1d422cbb38 Fix occasional crash in mkdir() on Windows 2019-05-25 13:35:44 -07:00
Sebastian Messmer
7d40937b9a Better logging when local state can't be loaded 2019-05-25 12:28:13 -07:00
Sebastian Messmer
0ee707397d Prepare changelog for 0.10.2 2019-04-03 18:40:31 -07:00
Sebastian Messmer
e732cc03f6 Mark 0.10.1 as released 2019-04-03 18:37:11 -07:00
Sebastian Messmer
951f76af15 Fix building with Boost 1.67 2019-04-03 18:36:53 -07:00
Sebastian Messmer
276e7f08e4 Switch from libunwind to boost::stacktrace 2019-04-01 19:18:49 -07:00
Sebastian Messmer
1409b061b7 Update to DokanY 1.2.1 and Boost 1.67 on Windows 2019-03-30 13:47:15 -07:00
Sebastian Messmer
807f0dc01b Use libunwind instead of libbacktrace to build stack traces. This fixes a segfault issue with platforms using libexecinfo and is generally more portable. 2019-03-25 09:29:58 -07:00
Sebastian Messmer
0abe985dc0 Mention musl fixes in ChangeLog 2019-03-23 22:02:27 -07:00
Sebastian Messmer
2150446a2c Use paths relative to executable location to find subprocess executables 2019-03-23 22:01:26 -07:00
Sebastian Messmer
6f07ebed88 Merge branch 'hotfix/idleunmount' into release/0.10 2019-02-28 22:03:29 -08:00
Sebastian Messmer
f573843f27 Fix --unmount--idle 2019-02-28 02:29:10 -08:00
Sebastian Messmer
8c189c9ace fix cmake crypto++ 2019-02-28 01:22:04 -08:00
Sebastian Messmer
5a5f8f7324 When trying to migrate a file system from CryFS 0.9.3 or older, show an error message suggesting to first open it with 0.9.10 because we can't load that anymore. 2019-02-10 13:07:50 -08:00
Sebastian Messmer
97c9ac4a75 If file system migration encounters files or folders with the wrong format in the base directory, it now just ignores them instead of crashing. 2019-02-09 14:55:16 -08:00
Sebastian Messmer
a98f0f92a1 Mark 0.10.0 as released 2019-02-08 18:50:13 -08:00
Sebastian Messmer
ec05613968 Mark 0.9.10 as released 2019-01-20 19:57:23 -08:00
Sebastian Messmer
58cb91102d Implement cryfs-unmount for unmounting filesystems 2019-01-19 13:02:41 -08:00
Sebastian Messmer
286bad94cc Changelog 2019-01-12 23:26:59 -08:00
Sebastian Messmer
5163368c81 Changelog 2019-01-12 23:26:38 -08:00
Sebastian Messmer
1da3e6cbae - Fix for reading empty files out of bounds
- Fixed race condition (https://github.com/cryfs/cryfs/issues/224 and https://github.com/cryfs/cryfs/issues/243)
2019-01-12 23:21:12 -08:00
Sebastian Messmer
49a8c684a0 - Fix for reading empty files out of bounds
- Fixed race condition (https://github.com/cryfs/cryfs/issues/224 and https://github.com/cryfs/cryfs/issues/243)
2019-01-12 23:19:27 -08:00
Sebastian Messmer
00bd3c9342 Update changelog 2018-12-27 10:43:34 +01:00
Sebastian Messmer
72d9f29ef7 Update changelog 2018-12-27 10:41:57 +01:00
Sebastian Meßmer
509668070d
Update ChangeLog.txt 2018-10-19 20:38:27 +02:00
Sebastian Meßmer
4383cf1114
Update ChangeLog.txt 2018-09-29 01:07:55 -07:00
Sebastian Meßmer
50770c6ace
Fix layout 2018-09-29 01:05:10 -07:00
Sebastian Messmer
1a7625ea9b Merge from next 2018-09-09 14:48:06 -07:00
Sebastian Messmer
eb8682887f Increased scrypt hardness to (N=1048576, r=4, p=8) to make it harder to crack the key while allowing cryfs to take advantage of multicore machines. 2018-05-20 19:21:09 -07:00
Sebastian Messmer
e020bb661b Mark 0.9.9 as released 2018-02-04 19:16:11 -08:00
Sebastian Messmer
00c8966566 Merge branch 'develop' into next 2018-02-03 09:57:13 -08:00
Sebastian Messmer
7a704c3ab4 Update ChangeLog 2018-02-03 09:57:07 -08:00
Sebastian Messmer
f90b7ad778 Merge from develop 2018-02-02 00:21:51 +00:00
Sebastian Messmer
5948f63fc8 When CryFS fails to load a file system, the process stops with a helpful error code, which can be used by GUI tools to show detailed messages. 2018-02-02 00:08:01 +00:00
Sebastian Messmer
05f3726ec3 Merge from develop 2018-02-01 11:21:26 -08:00
Sebastian Messmer
5fc0b7cae8 Add --version option that shows the CryFS version and exits. 2018-02-01 10:21:47 -08:00
Sebastian Messmer
8da4f4d362 Add --allow-filesystem-upgrade option which will upgrade old file systems without asking the user. This will be especially helpful for GUI tools. 2018-02-01 02:04:59 -08:00
Sebastian Messmer
a0fa433f51 Merge from develop 2018-01-12 22:18:36 +00:00
Sebastian Messmer
2afcaf4bba Prepare ChangeLog for 0.9.9 2018-01-12 22:17:09 +00:00
Sebastian Messmer
db98e20e20 Complete ChangeLog 2018-01-12 22:16:02 +00:00
Sebastian Messmer
8856b60047 Mark 0.9.8 as released 2018-01-12 22:09:49 +00:00
Sebastian Meßmer
170b3ed466 Update ChangeLog.txt 2017-09-28 10:19:19 -07:00
Sebastian Meßmer
0e8622d7ae Update ChangeLog.txt 2017-09-25 13:57:01 -07:00
Sebastian Messmer
556d9cf452 New default block size: 16KB 2017-09-19 11:20:28 +01:00
Sebastian Messmer
7e56c46bb0 CryFS tells the operating system to not swap the encryption key to the disk (note: this is best-effort and cannot be guaranteed. Hibernation, for example, will still write the encryption key to the disk) 2017-09-05 00:43:43 +01:00
Sebastian Meßmer
3d1bf9e2b9 Update ChangeLog 2017-08-31 23:48:22 +01:00
Sebastian Messmer
0c3f16d0ce ChangeLog 2017-08-23 20:33:10 +01:00
Sebastian Messmer
679b14a4d8 * Allow mounting using system mount tool and /etc/fstab (e.g. mount -t fuse.cryfs basedir mountdir)
* Pass fuse options directly to cryfs (i.e. 'cryfs basedir mountdir -o allow_other' instead of 'cryfs basedir mountdir -- -o allow_other')
2017-08-23 09:56:03 +01:00
Sebastian Messmer
ade23f9b86 Merge branch 'develop' into next 2017-08-19 11:53:22 +01:00
Mouse
7abed14d63 Make compatible with the current Crypto++ master (#163)
* Make compatible with the current Crypto++ master

* Add auto-config and build script. Not important, just a time-saver.

* Address compatibility with Crypto++ 6.0 release, while maintaining compatibility
with the older Crypto++ releases.

* Polish comments in cryptopp_byte.h. Forgot to include it to RandomGeneratorThread - fixed.

* Late at night - forgot to fix the .cpp files that used ::byte...

* Renamed auto-config-and-run script

* Added comments/description, and commented out "make check" that fails anyway

* Changed the include guard to match the rest of the .h files

* Delete build script

* Update ChangeLog.txt

* Update ChangeLog.txt
2017-08-16 03:00:46 +01:00
Sebastian Messmer
d84e65ad76 Merge from develop 2017-02-18 13:22:43 +00:00
Sebastian Messmer
19bfe97d52 du reports correct space usage 2017-02-18 13:21:54 +00:00
Sebastian Messmer
4bcad82186 Add section for version 0.9.8 2017-02-11 12:35:42 +00:00
Sebastian Messmer
37603c5963 Mark Version 0.9.7 as released 2017-02-11 12:34:50 +00:00
Sebastian Messmer
d8f723f838 Merge branch 'develop' into next 2017-02-04 19:31:29 +00:00
Sebastian Messmer
dab097a8aa Add gcc7 to changelog 2017-02-04 19:31:07 +00:00
Sebastian Messmer
42765c6be6 Merge from develop 2017-01-21 20:24:09 +00:00
Sebastian Meßmer
ff4186fb9f Update ChangeLog.txt 2016-10-25 16:06:28 -07:00
Sebastian Messmer
abae027538 Fix compiler error on FreeBSD 2016-10-20 10:35:29 +02:00
Sebastian Messmer
9d05b8571c Merge from develop 2016-10-13 18:30:27 +02:00
Sebastian Messmer
bbf6cb21c1 Mark version 0.9.6 as released 2016-10-13 17:37:03 +02:00
Sebastian Messmer
72b6874c12 Add fix for compiling the scrypt module under hardening-wrapper 2016-10-04 20:45:26 +02:00
Sebastian Messmer
bd74a5b762 More detailed error reporting if key derivation fails 2016-10-02 11:01:14 +02:00
Sebastian Meßmer
90adf20483 Update ChangeLog.txt 2016-09-25 11:42:49 +02:00
Sebastian Messmer
b027f8c007 Merge from develop 2016-09-24 20:43:54 +02:00
Sebastian Meßmer
6a4f5a167b Update ChangeLog.txt 2016-09-24 19:48:01 +02:00
Sebastian Messmer
11a85ed29f Allow building with -DCRYFS_UPDATE_CHECKS=off, which will create an executable with disabled update checks (the alternative to disable them in the environment also still works). 2016-09-24 13:16:26 +02:00
Sebastian Messmer
46a2251e9d Fix potential (although improbable) deadlock 2016-09-24 11:01:22 +02:00
Sebastian Messmer
e30656797b Add compatibility with Crypto++ 5.6.4 2016-09-24 09:39:37 +02:00
Sebastian Meßmer
a9360acc5b Update ChangeLog.txt 2016-09-01 00:31:53 +02:00
Sebastian Messmer
b315154f08 Merge from develop 2016-07-23 10:17:42 +02:00