[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180925173745.GA20508@kroah.com>
Date: Tue, 25 Sep 2018 19:37:45 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Tong Zhang <ztong@...edu>
Cc: tglx@...utronix.de, akpm@...ux-foundation.org,
linux@...inikbrodowski.net, gorcunov@...nvz.org,
ebiederm@...ssion.com, keescook@...omium.org, Dave.Martin@....com,
wolffhardt.schwabe@....de, yang.shi@...ux.alibaba.com,
linux-kernel@...r.kernel.org, wenbo.s@...sung.com
Subject: Re: different capability from different namespace required for
prctl_set_mm_exe_file
On Tue, Sep 25, 2018 at 01:26:55PM -0400, Tong Zhang wrote:
> Kernel Version: 4.18.5
>
> Problem Description:
>
> We discovered inconsistent check when using prctl_set_mm_exe_file(), which is used to setup exe file link.
>
> It is required to have capable(CAP_SYS_RESOURCE) in prctl_set_mm().
> while ns_capable(CAP_SYS_ADMIN) in prctl_set_mm_map().
>
> There are two differences:
> 1)requiring capability from: user namespace, init namespace.
> 2)capability bit required is different
Can you submit a patch showing what you think is the correct fix here?
thanks,
greg k-h
Powered by blists - more mailing lists