sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrstable/2009
commita646269c2ada7691d8a7f7455ba4528c7cca3483
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 22 Jan 2010 14:41:00 +0000 (22 14:41 +0000)
committerMarcin Juszkiewicz <marcin@buglabs.net>
Fri, 22 Jan 2010 17:10:59 +0000 (22 18:10 +0100)
treea8c833f92e2c22879b817a155873338d04f065da
parent28727bafad69bd9a7e279c7a6d22fcbb011916ff
sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addr

* With 2.6.33-rc2-00252-ge9e5521 on my host I noticed that
  "cat /proc/sys/vm/mmap_min_addr" returns now
  "cat: /proc/sys/vm/mmap_min_addr: Operation not permitted"
  Its probably becuse of
  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3
  But I'm not sure if checking CAP_SYS_RAWIO even for reading this value
  is intentional or just bug which should be fixed in kernel.

This patch makes bitbake ignore reading error. Possible QEmu failure is not
handled yet.

Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Koen Kooi <koen@openembedded.org>
classes/sanity.bbclass