tech-kern archive

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

Re: quotactl permissions



On Tue, Sep 04, 2012 at 02:59:58PM +0000, Emmanuel Dreyfus wrote:
> Hi
> 
> I discovered that quotactl will return EPERM when reasing quota for 
> a given uid, while process real UID is root, which is a bit surprising.
> 
> Attached is a test case. The problem happens on 6.0_RC1. Can we call
> it a bug?
> 
> The code that handle authorization is here:
> sys/ufs/ufs/ufs_vfsops.c:quota_get_auth()

It has at least one obvious bug: the check for same-UID should be in
kauth.

Thor


Home | Main Index | Thread Index | Old Index