Re: selinux and acpi actions...

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

 



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


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]