lkml.org 
[lkml]   [2010]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]X86:reboot.c Add some dmi entries to pci_reboot_dmi_table.
On Tue, 1 Jun 2010 22:48:20 +0100
Matthew Garrett <mjg59@srcf.ucam.org> wrote:

> On Tue, Jun 01, 2010 at 02:43:12PM -0700, Justin P. Mattock wrote:
> > On 06/01/2010 02:29 PM, Matthew Garrett wrote:
> >> So, just to be clear, you run this as root and it immediately returns
> >> you to the prompt? This seems unlikely.
> >
> > yep.. with the above code
> > I (save to a file) then
> > non-root gcc reboot.c -o reboot
> > then su
> > ./reboot
> > just bake to the command prompt
>
> Are you running some sort of security policy that might block hardware
> access?

Try

if (iopl(...))
perror

... (or strace it running as root)


\
 
 \ /
  Last update: 2010-06-02 14:05    [W:0.269 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site