From: Brown, Len <len.brown@in...> - 2005-06-30 00:42:09
FC4's selinux vs acpid:
From: Lance Mosher [mailto:lance.mosher@...]=20
Sent: Wednesday, June 29, 2005 2:31 PM
To: Brown, Len
Subject: Re: Bug with ACPID under FC4
Thanks for getting back to me so quickly!
I just did a search with selinux and acpid and turn out selinux in FC4
puts some pretty harsh restrictions on the acpid (like i/o access,
apparently). The fix is to just to tell SELinux to leave acpid and
If anyone runs into this in the future just tell them to
system-config-securitylevel and then go to the SELinux tab and in the
list open SElinux Service Protection and check the 'Disable SELinux
protection for apmd daemon' box.
Follow this thread for more info:
On 6/29/05, Brown, Len <len.brown@...> wrote:
> Maybe some of those security enhancements in FC4?
> Have you tried booting with selinux=3D0?
> -----Original Message-----
> From: Lance Mosher [mailto:lance.mosher@...]
> Sent: Wednesday, June 29, 2005 2:04 PM
> To: Brown, Len
> Subject: Fwd: Bug with ACPID under FC4
> I hope you can help me with this since Tim's mail bounced back. I'm
> running the latest FC4 kernel, just so you know.
> ---------- Forwarded message ----------
> From: Lance Mosher <lance.mosher@...>
> Date: Jun 29, 2005 1:57 PM
> Subject: Bug with ACPID under FC4
> To: Tim Hockin <thockin@...>
> Hi Tim,
> I wouldn't bother you if I hadn't tried every conceivable way to fix
> this problem. I'm using acpid to run a script that reads and writes a
> file based on the ac adapter state. In Fedora Core 3 everything worked
> In FC4 I'm getting some peculiar permission denied problems from the
> event handler. Basically at the beginning of the script I'm trying to
> read a text file using "read VARIABLE < /file", but the handler gives
> a permission denied error. The script is in bash and the file and
> directories have full permissions to everyone. The script executes
> fine as run by either my username or as root.
> I've talked to the folks in #bash on irc.freenode.net and they thought
> I was pulling their chain. I've tried calling the script from my
> username in the event file as: action: su username -c "bash
> /scriptfile/", but the su asks for a password...
> Either way, the script seems to run as root, but has less access to
> the filesystem than my own username. Is there a way to give acpid more
> Thanks much,
Get latest updates about Open Source Projects, Conferences and News.