]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - lib/bootconfig.c
bootconfig: Reject subkey and value on same parent key
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 20 Feb 2020 12:19:12 +0000 (21:19 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 20 Feb 2020 22:54:09 +0000 (17:54 -0500)
commita24d286f36104ed45108a5a36f3868938434772f
tree9216a8d32db02443cdb17d15a2695d39c367a090
parent15e95037b45f24f9ab6d4f0bd101d4df0be24c1d
bootconfig: Reject subkey and value on same parent key

Reject if a value node is mixed with subkey node on same
parent key node.

A value node can not co-exist with subkey node under some key
node, e.g.

key = value
key.subkey = another-value

This is not be allowed because bootconfig API is not designed
to handle such case.

Link: http://lkml.kernel.org/r/158220115232.26565.7792340045009731803.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Documentation/admin-guide/bootconfig.rst
lib/bootconfig.c
tools/bootconfig/samples/bad-mixed-kv1.bconf [new file with mode: 0644]
tools/bootconfig/samples/bad-mixed-kv2.bconf [new file with mode: 0644]