<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/proc/bootconfig.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-24T15:49:24Z</updated>
<entry>
<title>proc/bootconfig: Fix to use correct quotes for value</title>
<updated>2020-06-24T15:49:24Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2020-06-16T10:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a9671a885769c8ec64afc5c6857ad8fa7ca5a2e'/>
<id>urn:sha1:4a9671a885769c8ec64afc5c6857ad8fa7ca5a2e</id>
<content type='text'>
commit 4e264ffd953463cd14c0720eaa9315ac052f5973 upstream.

Fix /proc/bootconfig to select double or single quotes
corrctly according to the value.

If a bootconfig value includes a double quote character,
we must use single-quotes to quote that value.

This modifies if() condition and blocks for avoiding
double-quote in value check in 2 places. Anyway, since
xbc_array_for_each_value() can handle the array which
has a single node correctly.
Thus,

if (vnode &amp;&amp; xbc_node_is_array(vnode)) {
	xbc_array_for_each_value(vnode)	/* vnode-&gt;next != NULL */
		...
} else {
	snprintf(val); /* val is an empty string if !vnode */
}

is equivalent to

if (vnode) {
	xbc_array_for_each_value(vnode)	/* vnode-&gt;next can be NULL */
		...
} else {
	snprintf("");	/* value is always empty */
}

Link: http://lkml.kernel.org/r/159230244786.65555.3763894451251622488.stgit@devnote2

Cc: stable@vger.kernel.org
Fixes: c1a3c36017d4 ("proc: bootconfig: Add /proc/bootconfig to show boot config list")
Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>proc: bootconfig: Add /proc/bootconfig to show boot config list</title>
<updated>2020-01-13T18:19:39Z</updated>
<author>
<name>Masami Hiramatsu</name>
</author>
<published>2020-01-10T16:04:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1a3c36017d4c4a4c61aa5f86704b7e80b92d3f7'/>
<id>urn:sha1:c1a3c36017d4c4a4c61aa5f86704b7e80b92d3f7</id>
<content type='text'>
Add /proc/bootconfig which shows the list of key-value pairs
in boot config. Since after boot, all boot configs and tree
are removed, this interface just keep a copy of key-value
pairs in text.

Link: http://lkml.kernel.org/r/157867225967.17873.12155805787236073787.stgit@devnote2

Signed-off-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;
Signed-off-by: Steven Rostedt (VMware) &lt;rostedt@goodmis.org&gt;
</content>
</entry>
</feed>
