| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Let's drop support systems lacking memfds, i.e. pre kernel 3.17 systems.
This allows us to drastically simplify the "data fd" concept, so far
that we can remove it entirely.
This replaces acquire_data_fd() with a specialized call to
memfd_new_and_seal(), not that memfds can be the only implementation of
the concept.
|
|
|
|
| |
Like what we already do at other places
|
| |
|
|
|
|
| |
inttypes.h doesn't define size_t
|
|
|
|
| |
Follow-up for: b25a930f0e2ebe77bc8b0f0acfac8a3b27ef1f0a
|
|
|
|
| |
This adds a new helper for cloning any file's contents (or block device contents) into a new memfd.
|
|
The goal is to move everything that requires selinux or smack
away from src/basic/. This means that src/basic/label.[ch] must move,
which implies btrfs-util.[ch], copy.[ch], and a bunch of other files
which form a cluster of internal use.
This is just moving text around, so there should be no functional difference.
test-blockdev-util is new, because path_is_encrypted() is moved to
blockdev-util.c, and so far we didn't have any tests for code there.
|