Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 1999 16:08:32 -0700
From:      John Armstrong <siberian@siberian.org>
To:        freebsd-questions@FreeBSD.ORG
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Shared Memory Problem Example Code
Message-ID:  <v04210127b3bab13cc8ba@[216.112.76.84]>
In-Reply-To: <19990720092829.K72885@freebie.lemis.com>
References:  <v0421017ab3b913deebc7@[216.112.76.84]> <19990720092829.K72885@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Found the problem with this.

When you send the mode option :

my %options = ('create' => 'yes' ,
	        'exclusive'     => 'no' ,
			'mode'         => '0666',
			'destroy'       => 'no' ,
) ;

to the back end, freebsd interprets '0666' ( world readable and 
writeable ) as world _writeable_, thus making it only accessible by 
root. Removing the 'mode' argument and letting it default takes care 
of the problem.

Am I misreading the perm masks here or is this a bug that needs to go 
to send-pr? In 3.0 the mode command worked fine.

ipcs results :

With 'mode' specified as '0666' :
m 131075 1313361738 ---w--wa-w-      www      www

With no mode specified :
m  65541       5432 --rw-rw-rw-      www      www

John-



------------------------------------------------------------------
The first electric toothbrush was developed and tested on dogs.
There reportedly enjoyed it.
	-Uncle John's Fourth Bathroom Reader



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04210127b3bab13cc8ba>