Re: [Devel] [PATCH rh7] mm, ve: allow container's root to to ignore mlock limit

2015-11-23 Thread Vladimir Davydov
On Mon, Nov 23, 2015 at 12:51:49PM +0300, Andrey Ryabinin wrote: > Global root is allowed to exceed memlock limit, so this should be > allowed for container's root too. > capable() works only for global root, so use ve_capable() instead. > > Signed-off-by: Andrey Ryabinin Reviewed-by: Vladimir D

Re: [Devel] [PATCH rh7] mm, ve: allow container's root to to ignore mlock limit

2015-11-23 Thread Andrey Ryabinin
On 11/23/2015 12:51 PM, Andrey Ryabinin wrote: > Global root is allowed to exceed memlock limit, so this should be > allowed for container's root too. > capable() works only for global root, so use ve_capable() instead. > https://jira.sw.ru/browse/PSBM-41405 > Signed-off-by: Andrey Ryabinin > -

[Devel] [PATCH rh7] mm, ve: allow container's root to to ignore mlock limit

2015-11-23 Thread Andrey Ryabinin
Global root is allowed to exceed memlock limit, so this should be allowed for container's root too. capable() works only for global root, so use ve_capable() instead. Signed-off-by: Andrey Ryabinin --- mm/mlock.c | 8 mm/mmap.c | 6 +++--- mm/mremap.c | 2 +- 3 files changed, 8 inser