linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* different capability from different namespace required for prctl_set_mm_exe_file
@ 2018-09-25 17:26 Tong Zhang
  2018-09-25 17:37 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Tong Zhang @ 2018-09-25 17:26 UTC (permalink / raw)
  To: tglx, akpm, linux, gorcunov, ebiederm, gregkh, keescook,
	Dave.Martin, wolffhardt.schwabe, yang.shi
  Cc: linux-kernel, wenbo.s

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


- Tong



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-09-26  6:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 17:26 different capability from different namespace required for prctl_set_mm_exe_file Tong Zhang
2018-09-25 17:37 ` Greg KH
2018-09-25 18:34   ` Cyrill Gorcunov
2018-09-25 18:40     ` Greg KH
2018-09-25 18:54       ` Cyrill Gorcunov
2018-09-25 23:37     ` TongZhang
2018-09-26  6:59       ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).