@@ -103,6 +103,10 @@
* Validate the filesystem context preparatory to applying it. This is
* done after all the options have been parsed.
* @fc indicates the filesystem context.
+ * Returns 0 to indicate that it processed the argument and that the argument
+ * doesn't belong to the filesystem. It returns -ENOPARAM to indicate that
+ * the argument should be passed along to the filesystem. Any other error is
+ * an actual error.
* @sb_get_tree:
* Assign the security to a newly created superblock.
* @fc indicates the filesystem context.
@@ -576,7 +576,7 @@ static inline void security_fs_context_free(struct fs_context *fc)
static inline int security_fs_context_parse_param(struct fs_context *fc,
struct fs_parameter *param)
{
- return 0;
+ return -ENOPARAM;
}
static inline int security_fs_context_validate(struct fs_context *fc)
{
@@ -380,7 +380,7 @@ void security_fs_context_free(struct fs_context *fc)
int security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param)
{
- return call_int_hook(fs_context_parse_param, 0, fc, param);
+ return call_int_hook(fs_context_parse_param, -ENOPARAM, fc, param);
}
int security_fs_context_validate(struct fs_context *fc)