Research Menu

.
Skip Search Box

SELinux Mailing List

Re: Sepcut Relabel problem

From: Valdis.Kletnieks_at_vt.edu
Date: Wed, 07 Apr 2004 06:08:39 -0400


On Tue, 06 Apr 2004 16:31:12 PDT, Mark Shakespeare <mshakes@llnl.gov> said:
> --============_-1130828223==_ma============
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
> Trying to relabel file system from within Sepcut ( most current version )
>
> getting a weird error....
>
>
> couldn't open "/tmp/sepcut-zrqWs8Ew": no such file or directory
> couldn't open "/tmp/sepcut-zrqWs8Ew": no such file or directory

> Sepcut hangs....then no other X-based apps can run. A reboot clears things.
>
> Any ideas?

Seen in /etc/security/selinux/src/policy/Makefile:

relabel: $(FC) $(SETFILES)

        @echo "Cleaning out /tmp"
        -rm -rf /tmp/.??* /tmp/*

which is where your /tmp/sepcut-* and /tmp/.X11-unix/ went (the first explaining your sepcut error, the second explaining your X11 problem).

I'll let somebody else address the question of whether that 'rm' command is over-zealous, as I'm not sure what it's trying to do. If it's trying to make sure there's no symlink attacks, it's going about it wrongly, as all that does is close down the race conditions a bit.

Most likely, what it *should* be doing is a mkdir and working inside that directory for temp files.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  • application/pgp-signature attachment: stored
Received on Wed 7 Apr 2004 - 06:08:51 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service