sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addr
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 15 Jan 2010 17:10:29 +0000 (18:10 +0100)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Wed, 20 Jan 2010 10:13:16 +0000 (11:13 +0100)
commit1b426b8382d2a7864b63051b0707e577f2c0ce69
tree7269af5b8bcceadf121f93c983244c9f2ed93af2
parentc4408fc35e6ce5fa3f08a5f8635471a6bb346dd3
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>
classes/sanity.bbclass