Re: [Fedora 15/19] kexec: Export sysfs attributes for secureboot and secure modules to user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2013-09-04 at 17:51 -0400, Matthew Garrett wrote:
> On Wed, 2013-09-04 at 17:24 -0400, Vivek Goyal wrote:
> > User space kexec-tools need to know whether to verify signature of kernel
> > image being loaded. This patch exports two knobs to user space. One is
> > for knowing if  secureboot is enabled, this knob will be set to 1 if secure
> > boot is enabled. Other knob is secure_module_enabled. This knob will be set
> > to 1 if secure modules is one.
> 
> How are you verifying that you're really looking at sysfs?

Ok, thinking about it, fstatfs() does that. But how do you know you're
looking at the right file? Say I have /sys/kernel/secureboot and it
reads 1, and I also have /sys/kernel/kexec_loaded and it reads 0, and
then I do mount --bind /sys/kernel/kexec_loaded /sys/kernel/secureboot,
fstatfs() will tell you that you're reading sysfs but you'll think that
secure boot is disabled.

-- 
Matthew Garrett <matthew.garrett@xxxxxxxxxx>
_______________________________________________
kernel mailing list
kernel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kernel





[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux