Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
petitboot: openpower rules for usb devices
USB Device Objectives: Disable USB devices to preserve secure booting, protecting the security vulnerability surface for openpower machines. The Petitboot environment is limited in scope of utilities available for instrumentation of a solution (due to space constraints in flash image). Implement udev rule which disables the authorization of USB devices. To build with this set BR2_PETITBOOT_RESTRICT_USB=y in defconfig. Provide the ability for authorized access to enable USB devices if so desired. Implementation: Udev rule which sets the authorized_default attribute of USB devices to not allow USB devices to be able to connect to the kernel. Operational Characteristics: Upon boot no USB devices will be authorized to become functional by the disablement of the USB device. Once booted, if desired, an authorized user (one being able to su as root) can perform actions which will either temporarily or persistently enable USB devices. Method 1 - Set petitboot,usb-override=1 Setting the petitboot,usb-override=1 will persist the desired override and will enable USB devices from boot to boot (setting requires root privileges). Method 2 - Set file system authorized_default to either enable or disable the device as desired. (echo 1 > /sys/bus/usb/devices/usb1/authorized_default). Special Considerations: If access to the openpower machine is desired to allow physically attached USB devices (such as keyboard/mouse), authorized users can access the BMC's SOL Console and set one of the two methods described earlier for manual overrides. Signed-off-by: Deb McLemore <[email protected]>
- Loading branch information