Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 14:37:25 +0200
From:      Mikolaj Golub <trociny@freebsd.org>
To:        "Robert N. M. Watson" <rwatson@freebsd.org>
Cc:        src-committers@freebsd.org, Pawel Jakub Dawidek <pjd@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, Konstantin Belousov <kostikbel@gmail.com>, Julian Elischer <julian@freebsd.org>
Subject:   Re: svn commit: r232181 - in head/sys: kern sys
Message-ID:  <86mx81byt6.fsf@in138.ua3>
In-Reply-To: <9557FCA0-7428-4794-8A27-9888F42974CA@freebsd.org> (Robert N. M. Watson's message of "Wed, 29 Feb 2012 12:03:00 %2B0000")
References:  <201202261425.q1QEPm9g069102@svn.freebsd.org> <20120227082811.GC1363@garage.freebsd.pl> <864nucd5jc.fsf@in138.ua3> <20120227092951.GB55074@deviant.kiev.zoral.com.ua> <4F4C7571.7010407@freebsd.org> <86zkc3bell.fsf@in138.ua3> <4F4D6AA4.9040208@freebsd.org> <86vcmqaxij.fsf@in138.ua3> <9557FCA0-7428-4794-8A27-9888F42974CA@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=


On Wed, 29 Feb 2012 12:03:00 +0000 Robert N. M. Watson wrote:

 RNMW> I think the monitoring aspect of the patch is fine.

 RNMW> The bit I was worried about was external umask changes. This can cause
 RNMW> race conditions for applications that manage their umask -- for
 RNMW> example, bsdtar, if I recall correctly. It's one thing to use a
 RNMW> debugger to force an application to change its umask -- the developer
 RNMW> needs to know they are changing application behaviour. But exposing a
 RNMW> feature that can lead to correct applications but incorrect results is
 RNMW> a risky thing to do, hence my objection.

 RNMW> I think given the other objections, it would be wise to remove write
 RNMW> access to process umasks, but retain read access for procstat (which is
 RNMW> quite useful, I agree).

I still don't see why having a sysctl RW is worse than asking users to run
something like in the attach when they need to change umask for another
process, but ok, if people don't like RW I will remove it.

-- 
Mikolaj Golub


--=-=-=--



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