Thread (9 messages) 9 messages, 3 authors, 2018-06-13
STALE2908d

[PATCH] integrity: silence warning when CONFIG_SECURITYFS is not enabled

From: Matthew Garrett <hidden>
Date: 2018-06-04 17:44:52

On Mon, Jun 4, 2018 at 7:05 AM Sudeep Holla [off-list ref] wrote:
When CONFIG_SECURITYFS is not enabled, securityfs_create_dir returns
-ENODEV which throws the following error:
        "Unable to create integrity sysfs dir: -19"

However, if the feature is disabled, it can't be warning and hence
we need to silence the error.
I think it'd be preferable to check whether it's ENODEV rather than
doing IS_ENABLED. We should also reset integrity_dir to NULL rather
than leaving it as an error - it gets passed into various other
functions, and while those should all also just be returning errors
it'd be unfortunate if one attempted to dereference it.
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help