selinux: new helper - selinux_add_opt()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 Dec 2018 01:28:15 +0000 (20:28 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Dec 2018 16:49:18 +0000 (11:49 -0500)
commitba6418623385abf19a6c15cf0b1cfaacfdf9afc8
treef6ffef1eb1886b5b94677979ac03de3e5d48036c
parent84d8c4a5ef696ca96fa7a8d64db9222658b9d142
selinux: new helper - selinux_add_opt()

the guts of the loop in selinux_parse_opts_str() - takes one
(already recognized) option and adds it to growing selinux_mnt_opts.

Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/selinux/hooks.c