[PATCH] [RHEL/6] Search for nousb kernel command line argument in /etc/grub.conf within bootloader_nousb_argument check case-insensitively

Shawn Wells shawn at redhat.com
Wed Apr 16 23:59:27 UTC 2014


On 4/16/14, 5:44 AM, Jan Lieskovsky wrote:
> Patch summary:
>    * check for 'nousb' argument on kernel command line in /etc/grub.conf
>      within the bootloader_nousb_argument check in a case-insensitive way
>    * update comments where appropriate
>    * add test attestation timestamp
>    * replace path + filename ind construct with filepath one
>
> Testing report:
>    * Tested on RHEL-6. Works fine.

I wasn't sure if nousb was case insensitive, so I checked 
https://www.kernel.org/doc/Documentation/kernel-parameters.txt

And found this:
> Note that ALL kernel parameters listed below are CASE SENSITIVE, and that
> a trailing = on the name of any parameter states that that parameter will
> be entered as an environment variable, whereas its absence indicates that
> it will appear as a kernel argument readable via /proc/cmdline by programs
> running once the system is up.

"nousb" was in the list as case sensitive.

Applied your patch (RHEL 6.5), added "nOuSB," and things seem to check 
out. Should we follow the kernel docs (which say case sensitive), or 
allow insensitivity since it actually works?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/scap-security-guide/attachments/20140416/ca9fc6af/attachment.html>


More information about the scap-security-guide mailing list