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

Matthew Garrett mjg59 at google.com
Wed Jun 6 21:07:36 UTC 2018


On Tue, Jun 5, 2018 at 3:26 AM Sudeep Holla <sudeep.holla at arm.com> 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. This patch checks for the error -ENODEV
> which is returned when CONFIG_SECURITYFS is disabled to stop the error
> being thrown.
>
> Cc: James Morris <jmorris at namei.org>
> Cc: "Serge E. Hallyn" <serge at hallyn.com>
> Cc: Matthew Garrett <mjg59 at google.com>
> Signed-off-by: Sudeep Holla <sudeep.holla at arm.com>
ACKed-by: Matthew Garrett <mjg59 at google.com>
--
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



More information about the Linux-security-module-archive mailing list