[8274] in bugtraq

home help back first fref pref prev next nref lref last post

Re: License Manager's lockfiles (Solaris 2.5.1)

daemon@ATHENA.MIT.EDU (pedward@WEBCOM.COM)
Fri Oct 23 22:13:22 1998

Date: 	Fri, 23 Oct 1998 14:56:07 -0700
Reply-To: pedward@WEBCOM.COM
From: pedward@WEBCOM.COM
X-To:         na98jen@student.hig.se
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <Pine.SO4.4.02.9810211952060.25388-100000@stratus> from "Joel
              Eriksson" at Oct 21, 98 08:22:38 pm

>
> bash$ ls -l /var/tmp/.flexlm
> total 2
> -rw-rw-rw-   1 root     root         163 Oct 21 19:55 lmgrd.211
>
> I tested the bug by removing lockESRI and making a symlink to
> /var/tmp/test, in about a minute the file was created, owned by root and
> worldwrite'able.
>

Try creating a wrapper shell script that sets the umask before launching
the license manager.  If you set it properly, they won't be world writable
(providing that the LM uses open(filename, O_EXCL | O_CREAT);

This *sounds* like a simple misuse of the open syntax.

>
> /Joel Eriksson
>

--Perry

--
Perry Harrington        System Software Engineer    zelur xuniL  ()
http://www.webcom.com  perry.harrington@webcom.com  Think Blue.  /\

home help back first fref pref prev next nref lref last post