freebsd-nq/share/man
Pavel Balaev d12d651f86 EFI RT: resurrect EFIIOC_GET_TABLE
Make it work, but change the interface to be safe for non-root users. In
particular, right now interface only works for the tables which can be
minimally parsed by kernel to determine the table size. Then, userspace can
query the table size, after that it provides a buffer of needed size
and kernel copies out just table to userspace.

Main advantage is that user no longer need to be able to read /dev/mem,
the disadvantage is the need to have minimal parsers aware of the table
types.  Right now the parsers are implemented for ESRT and PROP tables.

Future extension of the present interface might be a return of only
the table physical address, in case kernel does not have suitable
parser yet. Then, a privileged user could read the table from /dev/mem.
This extension, which logically equivalent to the old (non-worked)
EFIIOC_GET_TABLE variant, is not implemented until needed.

Submitted by:	Pavel Balaev <pavel.balaev@3mdeb.com>
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D30104
2021-07-03 20:06:48 +03:00
..
man1
man3 assert.3: Document static_assert and _Static_assert 2021-04-20 11:17:44 +02:00
man3lua flua: Add a libjail module 2020-10-24 17:08:59 +00:00
man4 EFI RT: resurrect EFIIOC_GET_TABLE 2021-07-03 20:06:48 +03:00
man5 rc.conf.5: -Tlint fixes. 2021-07-01 22:54:26 +01:00
man6
man7 build.7: remove documentation of "make update" 2021-07-01 16:52:32 +01:00
man8 uefi: Add riscv to historical details 2021-02-22 22:27:00 +00:00
man9 hardclock.9: Refine some details 2021-07-02 17:10:35 -06:00
Makefile flua: Add a libjail module 2020-10-24 17:08:59 +00:00