Re: chvt fails if run from acpid event handlers - and external scripts can't be called (why?)

From: Stephen Smalley (sds_at_tycho.nsa.gov)
Date: 06/30/05

  • Next message: Scott Jan: "at boot internet connection fails"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Thu, 30 Jun 2005 08:18:32 -0400
    
    

    On Thu, 2005-06-30 at 13:00 +0200, Vincenzo Ciancia wrote:
    > Hi all, I have a bug which I can't trace back, but it happens that kwin
    > starts using 99% of my cpu power, and I have to kill and restart it. The
    > only thing that works is the power down button.
    >
    > So I first thought to write a script that kills kwin and restarts it. But I
    > can't seem to be able to call an external script from an acpid handler -
    > might this be due to selinux or something? - it says "permission denied".
    >
    > I tried to simply put "chvt 1" in the event handler but it says "Couldnt get
    > a file descriptor referring to the console" and I really am upset :) I can
    > shutdown the machine but I can't switch my foreground console.
    >
    > Can someone please give an hint?

    Check /var/log/audit/audit.log (FC4) or /var/log/messages (FC3) for avc:
    denied messages. Those are the SELinux log messages when it produces a
    denial. Report such messages to fedora-selinux-list, along with any
    surrounding audit messages that may be related.

    -- 
    Stephen Smalley
    National Security Agency
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Scott Jan: "at boot internet connection fails"
  • Quantcast