selinux and acpi actions...

Peter Jones pjones at redhat.com
Wed May 18 20:49:30 UTC 2005


On Wed, 2005-05-18 at 15:03 -0400, Daniel J Walsh wrote:
> Peter Jones wrote:
> 
> >On Wed, 2005-05-18 at 07:38 -0700, Bikehead wrote:
> >  
> >
> >>I probably don't since I'm trying to get suspend to memory.  However, I 
> >>am using the instructions for acpi action scripts from this site: 
> >>http://www.cs.usfca.edu/~afedosov/thinkpad/acpi.shtml.  It is writing to 
> >>/tmp/suspended in order to protect against a problem where the power 
> >>event was triggered after a resume from suspend to disk so that the 
> >>powerbutton.sh action could differentiate between a true shutdown and a 
> >>resume.
> >>    
> >>
> >
> >It shouldn't really be using a predictably named file in /tmp for that.
> >
> >  
> >
> How about /var/run?

/var/run is fine, sure.

Point being, the file needs to be in a directory only root can create
files in.
-- 
        Peter




More information about the fedora-test-list mailing list