Thread (16 messages) 16 messages, 5 authors, 2016-08-25

Re: [PATCH 0/5] Networking cgroup controller

From: Mahesh Bandewar (महेश बंडेवार) <hidden>
Date: 2016-08-25 00:28:48
Also in: netdev

On Tue, Aug 23, 2016 at 1:49 AM, Parav Pandit [off-list ref] wrote:
Hi Anoop,

Regardless of usecase, I think this functionality is best handled as
LSM functionality instead of cgroup.
I'm not so sure about that. Cgroup APIs are useful and this is just an
extension to it.

Tasks which are proposed in this patch are related to access control checks.
LSM already has required hooks for socket operations such as bind(),
listen() as few small examples.

Refer to security_socket_listen() which invokes LSM specific hooks.
This is invoked in source/net/socket.c as part of listen() system call.
LSM hook callback can check whether a given a process can listen to
requested UDP port or not.
This has administrative overhead that is not addressed. The underlying
cgroup infrastructure takes care of it in this (current)
implementation.
Parav
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help