]> rtime.felk.cvut.cz Git - jailhouse.git/commit
tools: config-create: make sure we are root when reading input files
authorHenning Schild <henning.schild@siemens.com>
Thu, 7 Aug 2014 12:45:52 +0000 (14:45 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 22 Aug 2014 12:19:44 +0000 (14:19 +0200)
commitff7b5cccc9cbed6638db5db0575c9611e897c042
tree59fc7af29116cd942cf2ad2ee5277e0a47f614de
parent32cebe1c0516f769beeb5637e79093bebca9ef1d
tools: config-create: make sure we are root when reading input files

File access permissions allow users and root to read PCI config spaces
of devices via sysfs. But depending on your uid you will read different
content.
That is why we have to make sure we open those files as root and can not
just rely on getting an EPERM.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
[Jan: removed extra blank line]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-collect.tmpl
tools/jailhouse-config-create