[coreboot-gerrit] Change in coreboot[master]: ifdtool: refactor region-permission-related functions