aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
Commit message (Collapse)AuthorAgeFilesLines
* Actually insert the free(d) call missed in r326802.Warner Losh2017-12-121-0/+1
| | | | | | | Noticed by: rpokala@ Notes: svn path=/head/; revision=326806
* Add sanity testing against maximum sane lengths for device paths forWarner Losh2017-12-121-0/+6
| | | | | | | | | | loader and kernel. CID: 1383608 Sponsored by: Netflix Notes: svn path=/head/; revision=326804
* Free load_opt_buf after we're done with it.Warner Losh2017-12-121-1/+2
| | | | | | | | CID: 1383607 Sponsored by: Netflix Notes: svn path=/head/; revision=326803
* Fix resource leak. Free converted description after printing it.Warner Losh2017-12-121-3/+4
| | | | | | | | | | Also minor style sort of local vars. CID: 1383606 Sponsored by: Netflix Notes: svn path=/head/; revision=326802
* Don't leak new_data.Warner Losh2017-12-121-0/+1
| | | | | | | | CID: 1383605 Sponsored by: Netflix Notes: svn path=/head/; revision=326801
* Check return value for set_bootvar and give a good error message.Warner Losh2017-12-121-1/+2
| | | | | | | | CID: 1383601 Sponsored by: Netflix Notes: svn path=/head/; revision=326800
* Unbreak gcc build by using (void) for functions that take no args.Warner Losh2017-12-111-3/+3
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=326771
* Indent multiple device path entries correctly.Warner Losh2017-12-091-2/+5
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=326728
* Remove vestiges of -d and -p commands.Warner Losh2017-12-091-12/+9
| | | | | | | | | Fix two core dumps when optional data isn't specified. Sponsored by: Netflix Notes: svn path=/head/; revision=326727
* Forgotten in 326725Warner Losh2017-12-091-1/+1
| | | | | | | Release Notes: Yes Notes: svn path=/head/; revision=326726
* Import Netflix's efibootmgr to help manage UEFI boot variablesWarner Losh2017-12-091-0/+874
efibootmgr manages the UEFI BootXXXX variables that implement the UEFI Boot Manager protocol defined in the UEFI standards. It is modeled after the Linux program of the same name with a mostly compatible set of command line options. Since there's a fair amount of OS specifioc code due to differeing names and methods of doing things, the compatibility isn't 100%. Basic functionality is implemented, though the more advanced next boot functionality that's been defined elsewhere is unimplemented. Submitted by: Matt Williams (with unix / efi path xlate by me) Sponsored by: Netflix Notes: svn path=/head/; revision=326725