fs: fix and better handle capabilities
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 0 repliesNew
- v13 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | fs: get over the intermediate tarballfs/ support/ | +20 | 1 reply | |
| 2/6 | fs/tar: add support for xattrs (thus capabilties)fs/ | +1 | 3 replies | |
| 3/6 | fs: rename internal variablefs/ | +6 | 2 replies | |
| 4/6 | fs: split devices and permissions tablesfs/ | +19 | 1 reply | |
| 5/6 | fs: allow user provided permissions to override packages permissionsfs/ | +1 | 0 replies | |
| 6/6 | fs: make static device nodes creation more logicalfs/ | +2 | 1 reply |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Arnout Vandecappelle (Essensium/Mind) |
|---|---|
| 1/6 | |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Buildroot] [PATCH 0/6 v2] fs: fix and better handle capabilities
Hello All!
As reported by Ricardo in #11216, and recently noticed thanks to the runtime tests he added, handling file capabilities is broken.
Ricardo did a very good job at pinpointing the issue, and that is caused by the recent-ish split of the filesystem infra with the use of the intermediate tarball.
It turns out that playing with fakeroot, tar, and capabilities is a lost game, as fakeroot behaves badly with the special handling tar does with the security.capability extended attribute.
This series fixes the issue with the first patch, in which we simply get rid of the intermediate tarball, and directly rsync from the global target/ directory to populate the per-filesystem target directory. This means that any common fincalisation under fakaeroot is no longer possible, so they have to be replicated for each filesystem instead.
The only remaining common part is now the generation of the various
tables: devices, permisions and users.
Then, the tar filesystem is fixed to store the xattrs.
Then there are tow clean-up patches, which pave the way to two fixes.
First, we allow permissions provided by users to override the internal permissions, as we do for all user-provided settings. Second, we fix the static device creation conditions.
Regards,
Yann E. MORIN.
The following changes since commit cd0ca09e43be8bd87fa35c96fa099a338b85de36
{linux, linux-headers}: bump 4.{4, 9, 14, 18}.x series (2018-11-11 22:11:04 +0100)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to ae80646fbb9d0e7f40434b16ebe5173ee3a4654c
fs: make static device nodes creation more logical (2018-11-12 18:28:28 +0100)
----------------------------------------------------------------
Yann E. MORIN (6):
fs: get over the intermediate tarball
fs/tar: add support for xattrs (thus capabilties)
fs: rename internal variable
fs: split devices and permissions tables
fs: allow user provided permissions to override packages permissions
fs: make static device nodes creation more logical
fs/common.mk | 92 +++++++++++-------------- fs/tar/tar.mk | 2 +- support/testing/tests/core/test_post_scripts.py | 4 +- 3 files changed, 44 insertions(+), 54 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'