Menu

IMA/EVM Utils Merge Request #1: Fix get_uuid() on btrfs, overlayfs file systems (open)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Matthias Gerstner wants to merge 1 commit from /u/matgerstner/linux-ima/ to master, 2017-08-31

get_uuid() fails for me on btrfs file systems. This change should fix it.

Other projects already had to deal with these kind of problems:

https://github.com/karelzak/util-linux/commit/cd41b385a06dde70bb45c3143d3459157bda58f8

Commit Date  
[dcbcf7] (fix_get_uuid) by Matthias Gerstner Matthias Gerstner

evmctl: use /proc/self/mountinfo instead of /dev/block/<major>:<minor>

Some file systems like btrfs and overlayfs don't report usable st_dev
values during stat(). The result is that a command like this:

evmctl sign --rsa --imasig -k ~/ima/ima_private.pem /some/file

fails with

Failed to read UUID. Root access might require.
errno: No data available (61)

Parsing /proc/self/mountinfo seems to be the usual way to get around
this limitation.

2017-08-31 08:12:38 Tree

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.