diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-14 23:42:21 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 11:50:02 -0500 |
commit | 757cbe597fe8490c7c0a9650ebe5d60195f151d4 (patch) | |
tree | 3603e26c54988aa08e45592f7955439974239e54 /security/security.c | |
parent | 99dbbb593fe6b39153c15ea9b9c63ea911864cf2 (diff) |
LSM: new method: ->sb_add_mnt_opt()
Adding options to growing mnt_opts. NFS kludge with passing
context= down into non-text-options mount switched to it, and
with that the last use of ->sb_parse_opts_str() is gone.
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/security.c b/security/security.c index b7a5a0051807..c251278b0297 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -458,11 +458,13 @@ int security_sb_clone_mnt_opts(const struct super_block *oldsb, | |||
458 | } | 458 | } |
459 | EXPORT_SYMBOL(security_sb_clone_mnt_opts); | 459 | EXPORT_SYMBOL(security_sb_clone_mnt_opts); |
460 | 460 | ||
461 | int security_sb_parse_opts_str(char *options, void **mnt_opts) | 461 | int security_add_mnt_opt(const char *option, const char *val, int len, |
462 | void **mnt_opts) | ||
462 | { | 463 | { |
463 | return call_int_hook(sb_parse_opts_str, 0, options, mnt_opts); | 464 | return call_int_hook(sb_add_mnt_opt, -EINVAL, |
465 | option, val, len, mnt_opts); | ||
464 | } | 466 | } |
465 | EXPORT_SYMBOL(security_sb_parse_opts_str); | 467 | EXPORT_SYMBOL(security_add_mnt_opt); |
466 | 468 | ||
467 | int security_inode_alloc(struct inode *inode) | 469 | int security_inode_alloc(struct inode *inode) |
468 | { | 470 | { |