Menu

Commit [6aea54]  Maximize  Restore  History

evmctl: use correct include for xattr.h

The xattr API/ABI is provided by both the c-library, as well as by the
libattr package. The c-library's header file is sys/xattr.h, whereas
libattr's header file can be found in attr/xattr.h.

Given none of the code here *links* against the libattr.so shared library, it
is wrong to *compile* against libattr's API (header file).

Doing so avoids confusion as to which xattr.h is used as the least problem,
and potential ABI differences as the worst problem due the mismatching header
file used.

So make sure we compile and link against the same thing, the c-library in
both cases.

Signed-off-by: André Draszik <git@...>
Signed-off-by: Mimi Zohar <zohar@...>

André Draszik André Draszik 2016-10-17

Mimi Zohar Mimi Zohar 2018-07-01

changed configure.ac
changed packaging/ima-evm-utils.spec
changed packaging/ima-evm-utils.spec.in
changed src/evmctl.c
configure.ac Diff Switch to side-by-side view
Loading...
packaging/ima-evm-utils.spec Diff Switch to side-by-side view
Loading...
packaging/ima-evm-utils.spec.in Diff Switch to side-by-side view
Loading...
src/evmctl.c Diff Switch to side-by-side view
Loading...
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.